eejbyfeldt commented on issue #13244: URL: https://github.com/apache/datafusion/issues/13244#issuecomment-2454737235
> or add another pass to downcast all literals (where lossless) so that coercion is applied to the literal and therefore folded into the literal. Maybe I am not fully understanding the ask here, but does this not already exists as the optimizer pass [UnwrapCastInComparision](https://github.com/apache/datafusion/blob/85f92ef6be1d7364857a2c13fbb026d9e45406ea/datafusion/optimizer/src/unwrap_cast_in_comparison.rs#L38)? -- 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