[teiid-issues] [JBoss JIRA] (TEIID-4418) Pushdown of a correlated with clause contains wrong correlated reference

Johnathon Lee (Jira) issues at jboss.org
Tue Feb 12 09:01:00 EST 2019


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

Johnathon Lee updated TEIID-4418:
---------------------------------
    Fix Version/s: 8.12.17.6_4


> Pushdown of a correlated with clause contains wrong correlated reference
> ------------------------------------------------------------------------
>
>                 Key: TEIID-4418
>                 URL: https://issues.jboss.org/browse/TEIID-4418
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 8.7
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Major
>             Fix For: 9.1, 8.12.17.6_4
>
>
> A query such as:
> {code}
> select e1, e2 from pm1.g2 where e1 = (with CTE1 as /*+ no_inline */ (SELECT pm1.g2.e1 from pm1.g1) select e1 from CTE1)
> {code}
> will pushdown as:
> {code}
> SELECT g_0.e1, g_0.e2 FROM g2 AS g_0 WHERE g_0.e1 = (WITH CTE1 (e1) AS (SELECT g2.e1 AS expr1 FROM g1 AS g_0) SELECT g_1.e1 FROM CTE1 AS g_1)
> {code}
> Note the incorrect g2.e1 reference.



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


More information about the teiid-issues mailing list