jayzhan211 opened a new issue, #12824: URL: https://github.com/apache/datafusion/issues/12824
### 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](https://www.postgresql.org/docs/9.4/functions-aggregate.html), [DuckDB](https://duckdb.org/docs/sql/functions/aggregates#ordered-set-aggregate-functions), so I think we should support them here as core functions  Related PR, https://github.com/apache/datafusion/issues/11732. - [ ] 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) 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) ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
