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
Fix NPE in registeredLookup extractionFn when "optimize" is not provided. #3064
Conversation
@@ -55,7 +55,7 @@ public RegisteredLookupExtractionFn( | |||
this.replaceMissingValueWith = replaceMissingValueWith; | |||
this.retainMissingValue = retainMissingValue; | |||
this.injective = injective; | |||
this.optimize = optimize; | |||
this.optimize = optimize == null ? true : optimize; |
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.
optimize is an experimental path, the input variable should be boolean
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.
This is just mimicking the behavior in LookupDimensionSpec.
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.
I take no stand on what the default should be, other than that they should behave the same way. Happy to change them both to default false.
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.
arg... consistency for now I agree is better.
travis fail due to #3067 |
👍 |
👍, after travis |
https://travis-ci.org/druid-io/druid/jobs/134941003
|
https://travis-ci.org/druid-io/druid/builds/135057242 (#2253)
|
No description provided.