You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Lukas Eder (Jira)" <ji...@apache.org> on 2021/01/20 19:11:00 UTC

[jira] [Created] (IGNITE-14026) Derived column list syntax works for VALUES constructor derived tables, but not for ordinary derived tables

Lukas Eder created IGNITE-14026:
-----------------------------------

             Summary: Derived column list syntax works for VALUES constructor derived tables, but not for ordinary derived tables
                 Key: IGNITE-14026
                 URL: https://issues.apache.org/jira/browse/IGNITE-14026
             Project: Ignite
          Issue Type: Bug
          Components: sql
    Affects Versions: 2.9.1
            Reporter: Lukas Eder


This works:
{code:java}
SELECT x FROM (VALUES(1)) AS t (x);{code}
But this doesn't:
{code:java}
CREATE TABLE t (i int PRIMARY KEY, j int);
SELECT x FROM (SELECT i FROM t) AS t (x);{code}
In the latter case, using the derived column list syntax to alias both derived table and its columns leads to the following error:
{noformat}
SQL Error [1001] [42000]: Failed to parse query. Column "T__Z1.X" not found; SQL statement:
SELECT
T__Z1.X
FROM (SELECT
__Z0.I
FROM PUBLIC.T __Z0) T__Z1 [42122-197]{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)