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

WITH ... ORDER BY cannot find table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0-incubating
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: