You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/09/13 16:50:02 UTC

[GitHub] [arrow] jorgecarleitao opened a new pull request #8180: ARROW-9752: [Rust] [DataFusion] Add support for User-Defined Aggregate Functions.

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:
users@infra.apache.org



[GitHub] [arrow] andygrove closed pull request #8180: ARROW-9752: [Rust] [DataFusion] Add support for User-Defined Aggregate Functions.

Posted by GitBox <gi...@apache.org>.
andygrove closed pull request #8180:
URL: https://github.com/apache/arrow/pull/8180


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [arrow] github-actions[bot] commented on pull request #8180: ARROW-9752: [Rust] [DataFusion] Add support for User-Defined Aggregate Functions.

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #8180:
URL: https://github.com/apache/arrow/pull/8180#issuecomment-691697180


   https://issues.apache.org/jira/browse/ARROW-9752


----------------------------------------------------------------
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:
users@infra.apache.org