[ 
https://issues.apache.org/jira/browse/PHOENIX-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026013#comment-16026013
 ] 

Hudson commented on PHOENIX-3865:
---------------------------------

FAILURE: Integrated in Jenkins build Phoenix-master #1625 (See 
[https://builds.apache.org/job/Phoenix-master/1625/])
PHOENIX-3865 IS NULL does not return correct results when first column 
(jamestaylor: rev 068c605625ea64c0c849db3ab7eb1f87d8dc5a3e)
* (edit) 
phoenix-core/src/main/java/org/apache/phoenix/filter/MultiKeyValueComparisonFilter.java
* (add) phoenix-core/src/it/java/org/apache/phoenix/end2end/AggregateIT.java
* (edit) 
phoenix-core/src/main/java/org/apache/phoenix/filter/MultiEncodedCQKeyValueComparisonFilter.java
* (edit) 
phoenix-core/src/main/java/org/apache/phoenix/filter/MultiCQKeyValueComparisonFilter.java
* (edit) 
phoenix-core/src/main/java/org/apache/phoenix/compile/WhereCompiler.java
* (edit) phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java
* (delete) 
phoenix-core/src/it/java/org/apache/phoenix/end2end/GroupByCaseIT.java
* (edit) 
phoenix-core/src/main/java/org/apache/phoenix/filter/MultiCFCQKeyValueComparisonFilter.java


> IS NULL does not return correct results when first column family not filtered 
> against
> -------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3865
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3865
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Lars Hofhansl
>            Assignee: James Taylor
>             Fix For: 4.11.0
>
>         Attachments: PHOENIX-3865.patch, PHOENIX-3865-wip.patch
>
>
> I'm using poor a poor man's method for sampling. In the following table, I 
> write a non-null value to COLB with a probability of 0.001.
> {code}
> create table test (mykey integer not null primary key, A.COLA integer, B.COLB 
> integer) IMMUTABLE_ROWS=true, STORE_NULL=false, IMMUTABLE_STORAGE_SCHEME = 
> ONE_CELL_PER_COLUMN, DISABLE_WAL=true
> {code}
> Then: 
> {code}
> 0: jdbc:phoenix:localhost> select count(*) from test;
> +-----------+
> | COUNT(1)  |
> +-----------+
> | 10000000  |
> +-----------+
> 1 row selected (8.95 seconds)
> 0: jdbc:phoenix:localhost> select count(*) from test where B.COLB is not null;
> +-----------+
> | COUNT(1)  |
> +-----------+
> | 10054     |
> +-----------+
> 1 row selected (0.023 seconds)
> 0: jdbc:phoenix:localhost> select count(*) from test where B.COLB is null;
> +-----------+
> | COUNT(1)  |
> +-----------+
> | 0         |
> +-----------+
> 1 row selected (0.022 seconds)
> {code}
> Last statement should have returned 10000000-10054 = 9989946 rows.



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

Reply via email to