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

Allow ORDER BY within COLLECT (an Oracle extension)

    XMLWordPrintableJSON

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

          Activity

            People

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

              Dates

                Created:
                Updated: