sdf-jkl opened a new issue, #19889: URL: https://github.com/apache/datafusion/issues/19889
### Is your feature request related to a problem or challenge? - Builds on top #18320 Now that we support `preimage` evaluation we should implement it for udfs to enable predicate pruning. > For example the predicate looking for a particular year > > WHERE EXTRACT (YEAR FROM k) = 2024 > > Can be rewritten as > > k >= 2024-01-01 AND k < 2025-01-01. > > And then k is easier to pushdown and subject to range analysis, etc. ### Describe the solution you'd like Implement `preimage` for `date_part` udf and add sqllogictests. ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
