Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-878

Allow ORDER BY within COLLECT (an Oracle extension)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                julianhyde Julian Hyde
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: