acking-you commented on issue #11212:
URL: https://github.com/apache/datafusion/issues/11212#issuecomment-2204910480

   > Could you give an example where this would make a difference? We have an 
optimization pass `SimplifyExpressions` which already takes care of `true` and 
`false` constants in `AND` and `OR` during planning.
   
   My apologies, my example might not have been the best illustration because 
cases with constants are indeed optimized by the rule. What I'm trying to get 
at is that there's currently unnecessary computation happening within 
`BinaryExpr` (perhaps in many cases, just calculating the `left` side would be 
sufficient to determine the result).


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to