-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
PROPOSAL EPICA proposal being discussed that is not yet fully underwayA proposal being discussed that is not yet fully underwayenhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem or challenge?
DataFusion doesn't support ordered-set aggregate functions yet.
Those functions are supported in Postgres, DuckDB, so I think we should support them in this repo as the core functions
All the aggregates listed in Table 9-51 ignore null values in their sorted input. For those that take a fraction parameter, the fraction value must be between 0 and 1; an error is thrown if not. However, a null fraction value simply produces a null result.
Related PR, #11732.
We have approx_percentile_cont and approx_percentile_cont_with_weight already, maybe we can start from these two functions
- approx_percentile_cont(fraction) WITHIN GROUP (ORDER BY sort_expression)
- approx_percentile_cont_with_weight(fraction) WITHIN GROUP (ORDER BY sort_expression)
Tasks to do
- Support WITHIN GROUP syntax
- mode() WITHIN GROUP (ORDER BY sort_expression)
- percentile_cont(fraction) WITHIN GROUP (ORDER BY sort_expression)
- percentile_cont(fractions) WITHIN GROUP (ORDER BY sort_expression)
- percentile_disc(fraction) WITHIN GROUP (ORDER BY sort_expression)
- percentile_disc(fractions) WITHIN GROUP (ORDER BY sort_expression)
- Clarify our support of ordered-set aggregate functions
-
WITHIN GROUPneeds to be more strict #18109
jonathanc-n, Garamda and samuelcolvinfindepi
Metadata
Metadata
Assignees
Labels
PROPOSAL EPICA proposal being discussed that is not yet fully underwayA proposal being discussed that is not yet fully underwayenhancementNew feature or requestNew feature or request
