[teiid-issues] [JBoss JIRA] (TEIID-1374) Nested correlated reference issue with rewritten queries

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Tue Aug 7 19:36:07 EDT 2012


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

Steven Hawkins resolved TEIID-1374.
-----------------------------------

    Fix Version/s: 8.1
       Resolution: Done


Added removal of intermediate groups to ensure that we get a proper set of references.
                
> Nested correlated reference issue with rewritten queries
> --------------------------------------------------------
>
>                 Key: TEIID-1374
>                 URL: https://issues.jboss.org/browse/TEIID-1374
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 7.0
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 8.1
>
>         Attachments: TestCorrelatedReferenceCollectorVisitor.java
>
>
> In a query such as "select * from bqt1.smalla where exists (select intnum from bqt1.smalla x where smalla.intnum = x.intnum and exists (select intnum from bqt1.smalla where exists (select intnum from bqt1.smalla x where smalla.intnum = x.intnum)))" we will inappropriately report that the top exists subquery has 2 correlated references since we see the more deeply nested smalla.intnum also.
> This is generally not a issue, it can introduce errors in places where subqueries are rewritten, such as with subquery optimization or inherently updatable view queries.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the teiid-issues mailing list