You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a AggregateUDFImpl trait, and AggregateUDF::new_from_impl that creates an AggregateUDF from the impl
Add an example in datafusion-examples/examples/advanced_udaf.rs of using this API
I am not sure why this API is implemented like it is (other than it was consistent with ScalarUDF). As a user I would expect to be able to use a trait object like this
Similarly to #8568
Is your feature request related to a problem or challenge?
The current way a user implements a AggregateUDF is awkward and very hard to extend in backwards compatible ways:
They must wade through several
Arc<dyn<...>
typedefs to figure out how to provide the type signature and implementationDescribe the solution you'd like
Follow the pattern in #8578
AggregateUDFImpl
trait, andAggregateUDF::new_from_impl
that creates anAggregateUDF
from the impldatafusion-examples/examples/advanced_udaf.rs
of using this APII am not sure why this API is implemented like it is (other than it was consistent with
ScalarUDF
). As a user I would expect to be able to use a trait object like thislike
Describe alternatives you've considered
No response
Additional context
The text was updated successfully, but these errors were encountered: