[teiid-issues] [JBoss JIRA] (TEIID-3573) Infinispan-dsl-cache translator: Operator <> incorrectly handles NULL values

Van Halbert (JIRA) issues at jboss.org
Mon Jul 27 20:38:02 EDT 2015


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

Van Halbert commented on TEIID-3573:
------------------------------------

I changed support for IsNULL to false.

In the data, there are 4 rows that have  <null> in the intNum column

Query:  select intKey,intNum from smallA where intKey <> 23

-  teiid pushes the criteria down and <null> values are returned in the result set

Query (adding Is Null):  select intKey,intNum from smalla where intNum <> 23 and intNum is Null

-  teiid changes the criteria to  WHERE 1 = 0   and returns no rows

Query (adding Is Not Null):  select intKey,intNum from smalla where intNum <> 23 and intNum is Not Null

-  teiid pushed down:  WHERE g_0.intNum <> 23  and teiid handles the Not Null check,  the results do not have the <null> values



> Infinispan-dsl-cache translator: Operator <> incorrectly handles NULL values
> ----------------------------------------------------------------------------
>
>                 Key: TEIID-3573
>                 URL: https://issues.jboss.org/browse/TEIID-3573
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>    Affects Versions: 8.7.1
>            Reporter: Filip Elias
>            Assignee: Van Halbert
>
> Operator '<>' returns true for NULL <> 1
> Example:
> {code}
> select intKey,intNum from smallA where intNum<>1
> {code} 
> It returns also rows which have NULL in column intNum
> I believe that NULL <> 1 is not true in SQL.



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


More information about the teiid-issues mailing list