dd-annarose opened a new pull request, #24334: URL: https://github.com/apache/datafusion/pull/24334
## Which issue does this PR close? - Closes #24133. ## Rationale for this change Functions like date_part require the value of one of their arguments to determine their return type. This PR adds support for CAST/TRY_CAST in addition to Literal values. This change is required as constant-folding cannot run before analysis. It casts logical fields once (not per row) so there is no impact in terms of performance. ## Are these changes tested? Yes, `date_part.slt` has been updated with two tests. ## Are there any user-facing changes? No. -- 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]
