alamb commented on code in PR #4200:
URL: https://github.com/apache/arrow-datafusion/pull/4200#discussion_r1022071990
##########
datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs:
##########
@@ -470,6 +470,22 @@ impl<'a, S: SimplifyInfo> ExprRewriter for Simplifier<'a,
S> {
op: Or,
right,
}) if is_false(&right) => *left,
+ // A OR !A ---> true (if A not nullable)
Review Comment:
👍 I suspect we would need to add some logic to
https://github.com/apache/arrow-datafusion/blob/master/datafusion/optimizer/src/type_coercion.rs
--
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]