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

WITH ... ORDER BY query gives AssertionError

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8
    • Component/s: None
    • Labels:
      None

      Description

      A query that has both a WITH clause and an ORDER BY clause gives an assertion error. TPC-DS query #1 reproduces, as does the following simple test case.

      with emp2 as (select * from emp)
      select * from emp2
      order by deptno
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: