[teiid-issues] [JBoss JIRA] (TEIID-5783) OUTER JOIN Yields Wrong Results When Used With GROUP BY, CASE and COUNT DISTINCT

Dmitrii Pogorelov (Jira) issues at jboss.org
Mon Jun 24 05:35:00 EDT 2019


Dmitrii Pogorelov created TEIID-5783:
----------------------------------------

             Summary: OUTER JOIN Yields Wrong Results When Used With GROUP BY, CASE and COUNT DISTINCT
                 Key: TEIID-5783
                 URL: https://issues.jboss.org/browse/TEIID-5783
             Project: Teiid
          Issue Type: Bug
          Components: Query Engine
    Affects Versions: 12.0
         Environment: teiid-12.0.0 on WildFly Full 14.0.1.Final (WildFly Core 6.0.2.Final)
            Reporter: Dmitrii Pogorelov
            Assignee: Steven Hawkins
         Attachments: test1.csv, test2.csv

Some queries that involve an OUTER JOIN between objects from different data sources, a GROUP BY with a CASE statement and a COUNT DISTINCT yield inconsistent results on a SELECT expression which is identical to the GROUP BY expression with CASE.

* Reproduced in combination of <File> LEFT JOIN <MySQL> and <File> LEFT JOIN <MS SQL> and the same for the other OUTER JOIN variants.
* screenshot for the different queries are attached
* sample data for reproduction is attached

The same problem happens with LEFT OUTER JOIN, RIGHT OUTER JOIN and FULL OUTER JOIN.



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


More information about the teiid-issues mailing list