[teiid-issues] [JBoss JIRA] (TEIID-5569) Subquery unnesting with count aggregates

Steven Hawkins (Jira) issues at jboss.org
Wed Dec 12 10:01:00 EST 2018


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

Steven Hawkins updated TEIID-5569:
----------------------------------
    Fix Version/s: 11.1.2
                   11.2.2


> Subquery unnesting with count aggregates
> ----------------------------------------
>
>                 Key: TEIID-5569
>                 URL: https://issues.jboss.org/browse/TEIID-5569
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>            Priority: Blocker
>             Fix For: 11.1.2, 12.0, 11.2.2
>
>
> A query such as:
> {code}
> SELECT pm1.g1.e1, pm1.g1.e2, /*+ MJ */ (select count(*) from pm1.g2 where e1 = pm1.g1.e1) FROM pm1.g1
> {code}
> Where the subquery contains aggregates without a group by will produce a join plan such that a group by is added to account for the projection of the e1 value for the join predicate.  However that will change the value from 0 to null for counts from pm1.g2 where there are no matching rows.



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


More information about the teiid-issues mailing list