[teiid-issues] [JBoss JIRA] (TEIID-5937) Union All followed by except returns wrong results

Steven Hawkins (Jira) issues at jboss.org
Wed Jun 10 16:46:33 EDT 2020


    [ https://issues.redhat.com/browse/TEIID-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14148950#comment-14148950 ] 

Steven Hawkins commented on TEIID-5937:
---------------------------------------

This case is now resolved as well.  I've simplified this - rather than trying to prevent the view removal everything works if we just keep the projection mapping using the constant added.

> Union All followed by except returns wrong results
> --------------------------------------------------
>
>                 Key: TEIID-5937
>                 URL: https://issues.redhat.com/browse/TEIID-5937
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 13.1
>            Reporter: Dmitrii Pogorelov
>            Assignee: Steven Hawkins
>            Priority: Blocker
>             Fix For: 15.0, 13.1.2, 14.0.1
>
>   Original Estimate: 4 hours
>          Time Spent: 4 hours, 30 minutes
>  Remaining Estimate: 0 minutes
>
> The following queries return wrong results:
> {code:sql}
> -- <null> though should return 1 
> select * from views.test2 except select * from views.test1
> UNION ALL
> select * from views.test1 except select * from views.test2 ;;
>  
> -- <null> though should return 1
> (select * from views.test2 except select * from views.test1
> UNION ALL
> select * from views.test1) except select * from views.test2 ;;
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the teiid-issues mailing list