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

Steven Hawkins (JIRA) issues at jboss.org
Tue Sep 6 16:38:00 EDT 2016


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

Steven Hawkins resolved TEIID-4418.
-----------------------------------
    Resolution: Done


Corrected the logic in the RelationalPlanner and the AliasGenerator to ensure that correlated references in with clauses will be handled correctly - however did not fully alter the naming logic so that generated common table/column names will be used.

> 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
>             Fix For: 9.1
>
>
> 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
(v6.4.11#64026)


More information about the teiid-issues mailing list