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

WITH ... ORDER BY cannot find table

    Details

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

      Description

      Calcite cannot find table alias when resolving the ORDER BY clause of a WITH query. Example:

      with e as (select * from emp)
      select * from e as e1 order by e1.empno

      throws

      Table 'E1' not found

        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: