[teiid-issues] [JBoss JIRA] (TEIID-3511) usage of BITAND function in exists statement results in duplicate rows

Bram Gadeyne (JIRA) issues at jboss.org
Wed Jun 3 10:01:02 EDT 2015


    [ https://issues.jboss.org/browse/TEIID-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073704#comment-13073704 ] 

Bram Gadeyne commented on TEIID-3511:
-------------------------------------

I see that the debug log changed the query a little. In the original query the BITAND part was like this:  BITAND(phr.status,2) <> 2	


> usage of BITAND function in exists statement results in duplicate rows
> ----------------------------------------------------------------------
>
>                 Key: TEIID-3511
>                 URL: https://issues.jboss.org/browse/TEIID-3511
>             Project: Teiid
>          Issue Type: Bug
>    Affects Versions: 8.9.1
>            Reporter: Bram Gadeyne
>            Assignee: Steven Hawkins
>         Attachments: debugplan_bitand.txt, debugplan_bitand_correct.txt, debugplan_nobitand.txt, debugplan_nobitand_correct.txt
>
>
> I've added the debug plan for the query without the BITAND function and with the BITAND function as an attachment.
> The version without the BITAND function returns 438 rows and the version with BITAND function returns 833 rows. I can see however that rows are duplicated in this second result. I've checked this by executing the version with BITAND statement with select *.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the teiid-issues mailing list