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
Going through some tickets related to ordered set aggregates and got a
little confused on DataFusion's support for them.
As I understand it, #13511 made `WITHIN GROUP` mandatory for ordered set
aggregate functions, of which we support only two so far:
- `approx_percentile_cont`
- Technically `approx_median` shares some internals with
`approx_percentile_cont` but itself isn't an ordered set aggregation
- `approx_percentile_cont_with_weight` (which uses
`approx_percentile_cont` internally)
This was then amended in #16999 to make it optional, at least via the
SQL API; it is still mandatory on the DataFrame API:
https://github.com/apache/datafusion/blob/bbb5cc79de3d037d0b06572ff417de7c3d9fe437/datafusion/functions-aggregate/src/approx_percentile_cont.rs#L53-L58
I'm updating the doc here to try clarify things to my understanding, as
a followup to the original doc update: #17744
0 commit comments