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
      

        Issue Links

          Activity

          Show
          julianhyde Julian Hyde added a comment - Fixed in https://github.com/julianhyde/optiq/commit/a1557c2927b446feebc1895208fc7a84451e2e95 with some extra tests in https://github.com/julianhyde/optiq/commit/347eabdd6ea600bcd17df607bdae90ea57ea221a .
          Hide
          julianhyde Julian Hyde added a comment -

          Close issues resolved in 0.8 release (2014-06-27).

          Show
          julianhyde Julian Hyde added a comment - Close issues resolved in 0.8 release (2014-06-27).

            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:

                Development