alamb opened a new pull request, #8578: URL: https://github.com/apache/arrow-datafusion/pull/8578
## Which issue does this PR close? Closes https://github.com/apache/arrow-datafusion/issues/8568 ## Rationale for this change This PR is a step towards https://github.com/apache/arrow-datafusion/issues/8045: 1. I want to make it easier to extend DataFusion's function packages (so that we can support many more different implementatins) 1. Splitting out functions into packages (e.g. datafusion-functions) needs an API that is easier to implement 2. We need a place to put more advanced ScalarUDF features (like "pre-compiling" arguments https://github.com/apache/arrow-datafusion/issues/8051 and adding better examples / documentation https://github.com/apache/arrow-datafusion/issues/8366) ## What changes are included in this PR? 1. introducing a trait based API for scalar functions (`ScalarUDFImpl` -- better names welcomed) 2. Add example of how you can use the trait based APIs for more advanced implementations (`advanced_udf.rs`) ## Are these changes tested? Yes, both new tests as well as updated existing tests ## Are there any user-facing changes? There is a new way to define ScalarUDFs and additional documentation. -- 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]
