ektravel commented on code in PR #14734:
URL: https://github.com/apache/druid/pull/14734#discussion_r1286290129


##########
docs/querying/math-expr.md:
##########
@@ -337,4 +328,11 @@ SQL compatible behavior:
 * `'troo' && 'true'` -> `0`
 * `'troo' || 'true'` -> `1`
 
+Prior to the 28 release of Apache Druid, boolean function expressions had 
inconsistent handling of true and false values, and the logical 'and' and 'or' 
operators behave in a manner that is incompatible with SQL, even if SQL 
compatible null handling mode (`druid.generic.useDefaultValueForNull=false`) is 
enabled. Logical operators also pass through their input values similar to many 
scripting languages, and treat `null` as false, which can result in some rather 
strange behavior. Other boolean operations, such as comparisons and equality, 
retain their input types (e.g. `DOUBLE` comparison would produce `1.0` for true 
and `0.0` for false), while many other boolean functions strictly produce 
`LONG` typed values of `1` for true and `0` for false. This legacy mode can be 
enabled by setting `druid.expressions.useStrictBooleans=false`.

Review Comment:
   This paragraph is confusing because you use past and present tense to refer 
to the past behavior. I think we should rewrite it so that it follows the same 
format.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to