pepijnve opened a new pull request, #17997: URL: https://github.com/apache/datafusion/pull/17997
## Which issue does this PR close? - Closes #17992 ## Rationale for this change This PR provides an alternative mechanism for scalar UDFs to control argument evaluation besides rewriting to other constructs like `case`. ## What changes are included in this PR? - Add `ScalarUDF::invoke_with_deferred_arguments` - Adapt `ScalarFunctionExpr` to use this mechanism when the function is declared to be short circuiting. - Provide an initial implementation using this mechanism for `nvl`. ## Are these changes tested? Covered by SQL logic tests ## Are there any user-facing changes? The new mechanism doesn't change anything. For `nvl` specifically, argument evaluation changes from eager to lazy. -- 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]
