You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2015/04/06 23:00:14 UTC

[jira] [Resolved] (PHOENIX-1806) null value will be find out as result when the pk is constraint

     [ https://issues.apache.org/jira/browse/PHOENIX-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Taylor resolved PHOENIX-1806.
-----------------------------------
    Resolution: Not A Problem

Please ask questions on the mailing list instead filing JIRAs.

> null value will be find out as result when the pk is constraint
> ---------------------------------------------------------------
>
>                 Key: PHOENIX-1806
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1806
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>         Environment: cent os
>            Reporter: sunnychen
>              Labels: test
>             Fix For: 4.3.1
>
>
> if the table and it's value is as below:
> the key is constraint key,which column(name,address,company)is all pk
> create sql:
> CREATE TABLE stats ( name varchar, address varchar,company varchar, interest varchar CONSTRAINT pk PRIMARY KEY (name,address,company) );
> then upsert the value,the table and its value is now as below:
> name     address   company    interest
> A1             B1           C1               D1
> A2             null          C2               D2
> A3             null          C3               D3
> A4             B4           C4               D4
> then if you use the sql to query:
> select * from stats where address in('B1','B4') and interest='D2';
> the query result is :
> name      address     company      interest
> A2             null           C2                D2
> so,there is the question,the result is supposed to be null,but the fact is it has a result,phoenix does not filter the column where the value of address is null,why???
> the bug is solved in 4.3,i wonder if because the hbase defalut filter did not filter the column where the value is null???
> how phoenix 4.3 fix the bug?  could you tell me how the bug fix in phoenix 4.3? thank you very much! 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)