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
Tasks to do
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
Related PR, #11732.
We have
approx_percentile_contandapprox_percentile_cont_with_weightalready, maybe we can start from these two functionsTasks to do
percentile_contaggregate function #18600AggregateUDFImpl::is_ordered_set_aggregatedocumentation #17805WITHIN GROUPneeds to be more strict #18109AggregateUDFImpl::is_ordered_set_aggregatetoAggregateUDFImpl::supports_within_group_clause#18280order bywithin ordered-set aggregate functions argument lists #18281percentile_contaggregate function #18601