You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2017/05/18 05:53:04 UTC
[jira] [Created] (PHOENIX-3865) IS NULL does not return results
when STORE_NULLS, and ONE_CELL_PER_COLUMN is set on IMMUTABLE ROWS
Lars Hofhansl created PHOENIX-3865:
--------------------------------------
Summary: IS NULL does not return results when STORE_NULLS, and ONE_CELL_PER_COLUMN is set on IMMUTABLE ROWS
Key: PHOENIX-3865
URL: https://issues.apache.org/jira/browse/PHOENIX-3865
Project: Phoenix
Issue Type: Bug
Reporter: Lars Hofhansl
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)