jorgecarleitao opened a new pull request #8180: URL: https://github.com/apache/arrow/pull/8180
This PR is a proposal to support User-Defined Aggregate Functions (UDAF). For now, the only thing that is worth going through is the example at rust/datafusion/examples/simple_udaf.rs, that shows how users would declare and use a UDAF to compute the geometric mean (it works). This implementation is built on top of #8172 , so, there is some time for discussions :). The stats on github are due to the other PRs. This PR is +426 -0 without tests. The proposed API follows the same principles of our API for creating UDFs: we offer a simple API to declare a single-typed UDAF, but we allow users the same flexibility that DataFusion internally has. This example uses the simple API, where users need to 1. declare a struct that implements `Accumulator` (declare 4 functions and some state) 2. create a UDAF that contains the UDAF's signature (1 function call) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
