-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert ArrayAgg
to UDAF
#10999
Comments
Will work on this one. I think it might also involve moving |
@jayzhan211 I pushed a work in progress here #11029 it still fails some test cases in sqllogictests
The first one seems to be because the new The second one looks a bit weird to me, not sure if I messed something up or I hitting some other issue. @jayzhan211 If you have time to provide some pointers that would be highly appreciated :) |
I suggest we convert 1. ArrayAgg 2 DistinctArrayAgg, 3. OrderSensitiveArrayAgg and 3. NthValue separately.
|
ArrayAgg and Nth expect to have parameter We can get
|
Sounds good. If only converting |
Make sense. How come we only provide a single value for |
We have single input because we have not meet any function that need multiple input yet. If there is any function that expect multiple input, we can extend it to Vec |
We could check the datafusion/datafusion/core/src/physical_planner.rs Lines 1825 to 1909 in 18042fd
|
What about covariance: https://github.com/apache/datafusion/blob/main/datafusion/functions-aggregate/src/covariance.rs#L43 that takes 2 arguments. |
@jayzhan211 Created a PR for only doning ArrayAgg here #11045 will look into adding |
array_agg is known to produce non-null result. |
@eejbyfeldt Dp you plan to work on |
@jayzhan211 I will not be able to work on it for the two weeks due to being on vacation. So, someone else should feel to pick it up/take it over before then. |
@jayzhan211 Should this be closed. Seems like it was resolved with #11448 ? |
Yes, all the functions are converted |
Is your feature request related to a problem or challenge?
Similar to other issues in #8708
Remember to include test in
roundtrip_expr_api
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: