Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14358

Regression when referencing aliased constant from derived table

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.10
    • Fix Version/s: None
    • Component/s: sql
    • Labels:
      None
    • Ignite Flags:
      Docs Required, Release Notes Required

      Description

      This used to work in 2.9.1 but no longer does in 2.10.0:

       

      CREATE TABLE t (i int PRIMARY KEY, j int);
      INSERT INTO t VALUES (1, 1);
      SELECT u.x
      FROM (
       SELECT 1 AS x
       FROM t
      ) u;
      

       

      The error I'm getting is:

      SQL Error [1001] [42000]: Failed to parse query. Column "U__Z0.X" not found; SQL statement:
      SELECT
      U__Z0.X
      FROM PUBLIC.T U__Z0 [42122-197]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lukas.eder Lukas Eder
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: