Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
- relates to
-
CALCITE-633 WITH ... ORDER BY cannot find table
- Closed