clintropolis commented on code in PR #13809:
URL: https://github.com/apache/druid/pull/13809#discussion_r1119968736
##########
processing/src/main/java/org/apache/druid/math/expr/vector/VectorProcessors.java:
##########
@@ -778,6 +842,15 @@ public ExprEvalVector<long[]> asEval()
);
}
+ /**
+ * Creates an {@link ExprVectorProcessor} for the logical 'and' operator,
which produces a long typed vector output
+ * with values set by the following rules:
+ * true/true -> true (1)
+ * true/null, null/true, null/null -> null
+ * false/null, null/false -> false (0)
Review Comment:
yeah, SQL compat stuff. `null` is basically a stand-in for "unknown" for
logical operations,```true && ???``` could be `true` or `false` depending on
the value of `???` so the result is `???`. But ```false && ???``` is definitely
false no matter the value of `???`.
--
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]