leoyvens commented on issue #15686: URL: https://github.com/apache/datafusion/issues/15686#issuecomment-2805353246
Ok I hear you, I'll try to do this without touching the parser and its configs. A concern with an LHS coercion is efficient pushdown. `col = x'lit'` can make use of statistics and parquet-level pruning, while `col::bytea = x'lit'` is a full-column scan. I will try to pursue the following approach: 1. We do the LHS coercion. 2. The `ExprSimplifier` is extended to expressions of the form: ``` Cast(fixed_size_binary_col, 'Binary') = x'lit' ``` If the lengths don't match, it is simplified to `false`, if they do match, the cast is moved to the RHS. -- 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