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

Support column alias in WITH queries (common table expressions)

    Details

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

      Description

      The SQL standard allows columns to be renamed when defining a common table expression. Since (#128 | FLINK-128) we support WITH, and can parse a column list, but the column list is ignored.

      Example:

      ```sql
      WITH w (x, y) AS (SELECT deptno, name FROM dept)
      SELECT x, y FROM w
      ```

      ---------------- Imported from GitHub ----------------
      Url: https://github.com/julianhyde/optiq/issues/273
      Created by: julianhyde
      Labels:
      Created at: Wed May 07 22:10:25 CEST 2014
      State: closed

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            github-import GitHub Import
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development