-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
remove druid.expressions.useStrictBooleans in favor of always being true #17568
remove druid.expressions.useStrictBooleans in favor of always being true #17568
Conversation
@@ -39,9 +34,6 @@ public class ExpressionProcessingConfig | |||
"druid.expressions.homogenizeNullMultiValueStringArrays"; | |||
public static final String ALLOW_VECTORIZE_FALLBACK = "druid.expressions.allowVectorizeFallback"; | |||
|
|||
@JsonProperty("useStrictBooleans") | |||
private final boolean useStrictBooleans; |
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.
IMO, we should keep the config here, and use it for exactly one thing: to log a warning on startup if it's set to false
. Just a little hint for people that upgrade without reading the release notes, and end up wondering why behavior changed.
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.
ah, that's reasonable, will add it back
Description
driud.expressions.useStrictBooleans
has been deprecated, this PR removes it effectively setting it to always be true. With this it means that Druid always handles boolean types as longs with 1 for true and 0 for false, and expression logical operations behave in sql compatible manner.Related #17575
I have not updated the docs yet because docs on this are intertwined with discussion about
druid.generic.useDefaultValueForNull
anddruid.generic.useThreeValueLogicForNativeFilters
, so I will address them all in one shot in a follow-up after everything is removed.Release note
Skipping writing the release note for just this PR, i think it makes sense to have a combined release note for when this,
druid.generic.useDefaultValueForNull
, anddruid.generic.useThreeValueLogicForNativeFilters
are all removed.