Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Oracle allows ORDER BY within the COLLECT aggregate function, e.g.
SELECT deptno, COLLECT(emp_type(ename, sal) ORDER BY sal DESC) emps FROM emp GROUP BY deptno
This is an Oracle-specific extension to SQL:2011 but nevertheless useful and worth considering.
Note that Calcite already supports DISTINCT within COLLECT.
Attachments
Issue Links
- is related to
-
CALCITE-2224 WITHIN GROUP clause for aggregate functions
- Closed
- relates to
-
CALCITE-1473 Ordered-set and hypothetical-set aggregate functions
- Open