acking-you commented on issue #11212: URL: https://github.com/apache/datafusion/issues/11212#issuecomment-2205869619
> Checking for array.true_count() to be all zero / all true. I think this is an optimization that might be better to implement in the arrow-rs and/or (and_kleene, or_kleene) kernels as a special case instead of in DataFusion. I think the root cause is that `left` and `right` are calculated first, and then further calculations are performed based on `op`. The specific code is in the link below: https://github.com/apache/datafusion/blob/main/datafusion/physical-expr/src/expressions/binary.rs#L260-L261 To make changes here, you'll need to modify the `DataFusion` code. Possible Solutions: [commit link](https://github.com/apache/datafusion/pull/11247/files) -- 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