-
Notifications
You must be signed in to change notification settings - Fork 3.8k
missing value handling on LookupExtractionFn, Fix for #2775 #2785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,8 @@ public boolean isInjective() | |
| @JsonProperty("optimize") | ||
| public boolean isOptimize() | ||
| { | ||
| return optimize; | ||
| // case retainMissingValue == true we can not optimize need to push down the filter | ||
| return !isRetainMissingValue() && optimize; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @b-slim I think this should be the in the optimize() call, it's the same kind of check as
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to elaborate more, maybe it's possible to have some optimization with retainMissingValues=true in the future in some other use case, the current incompatibility of retainMissingValues and optimize() is specific to the ExtractionDimFilter optimization being used, so the check should go in the filter that's affected |
||
| } | ||
|
|
||
| @Override | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to leave out the emptyToNull() call on
Strings.emptyToNull(lookupExtractionFn.getReplaceMissingValueWith(), since the constructor of FunctionalExtraction already does that: