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

Support column alias in WITH queries (common table expressions)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: