alamb commented on issue #14944: URL: https://github.com/apache/datafusion/issues/14944#issuecomment-2691384188
🤔 What are the coerced expressions? If it is like this: ``` cast(month_id, 'utf8') = '202502' ``` That is not going to prune because the cast is happening on `month_id` The predicate needs to be ``` month_id = cast('202502') ``` This is done in this analyzer pass: https://github.com/apache/datafusion/blob/main/datafusion/optimizer/src/unwrap_cast_in_comparison.rs Maybe we should do the same thing in `create_physical_expr` too 🤔 -- 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