Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Support ordered-set and hypothetical-set aggregate functions. Both have a WITHIN GROUP clause. These are supported by Oracle, PostgreSQL, Microsoft SQL Server.
Examples of ordered-set aggregate functions are mode, percentile_cont, percentile_disc. See PostgreSQL doc.
Examples of hypothetical-set aggregate functions are rank, dense_rank, percent_rank, cume_dist. See PostgreSQL doc.
The SQL standard says (in section 4.16.4 Aggregate Functions):
The hypothetical set functions are related to the window functions RANK, DENSE_RANK, PERCENT_RANK, and CUME_DIST, and use the same names, though with a different syntax.
Attachments
Issue Links
- is related to
-
CALCITE-878 Allow ORDER BY within COLLECT (an Oracle extension)
- Open
-
CALCITE-1556 Window validation bug with order by agg
- Open
-
CALCITE-4644 Add PERCENTILE_CONT and PERCENTILE_DISC aggregate functions
- Closed
-
CALCITE-4661 Add MODE aggregate function
- Closed
- relates to
-
CALCITE-4660 Add MEDIAN as an aggregate function
- Open