[teiid-issues] [JBoss JIRA] (TEIID-5806) Invalid select symbol name in source query

Johnathon Lee (Jira) issues at jboss.org
Mon Aug 26 16:52:00 EDT 2019


     [ https://issues.jboss.org/browse/TEIID-5806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johnathon Lee updated TEIID-5806:
---------------------------------
    Fix Version/s: 8.12.19.6_4


> Invalid select symbol name in source query
> ------------------------------------------
>
>                 Key: TEIID-5806
>                 URL: https://issues.jboss.org/browse/TEIID-5806
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Major
>             Fix For: 12.3, 12.2.2, 8.12.19.6_4
>
>
> A set operation involving a nested view can result in expression symbols in the select clause of the first union branch which cause the alias generator logic to not work properly (as the expressions can collide) and place an unwanted projected symbol in the select clause of the source query.  This could look something like:
> select v_0.c_0 ... v_0.actualName ...
> This can be reproduced with:
> {code}
> create foreign table smalla (intkey integer, stringkey string);
> create foreign table smallb (intkey integer, stringkey string);
> create view inner_view as (select null as x, null as y from smalla);
> {code}
> and issuing the query:
> {code}
> select x, y FROM (select x, y, null as z from inner_view union select intkey, stringkey, null from smallb) v LIMIT 99999
> {code}
> Note that the inner_view has two projected expressions with the same constant/null value.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the teiid-issues mailing list