N Campbell created PHOENIX-3632:
-----------------------------------
Summary: incorrect result set using quantified predicate
Key: PHOENIX-3632
URL: https://issues.apache.org/jira/browse/PHOENIX-3632
Project: Phoenix
Issue Type: Bug
Affects Versions: 4.7.0
Reporter: N Campbell
phoenix-4.7.0.2.5.3.0-37-client
This should return 4 rows but returns 0
select RNUM, C1, C2 from TJOIN2 where 20 > all ( select C1 from TJOIN1 where
C1 = 100)
create table if not exists TJOIN1 (RNUM integer not null primary key , C1
integer, C2 integer);
upsert into TJOIN1 (RNUM, C1, C2) values ( 0, 10, 15);
upsert into TJOIN1 (RNUM, C1, C2) values ( 1, 20, 25);
upsert into TJOIN1 (RNUM, C1, C2) values ( 2, NULL, 50);
create table if not exists TJOIN2 (RNUM integer not null primary key , C1
integer, C2 char(2));
upsert into TJOIN2 (RNUM, C1, C2) values ( 0, 10, 'BB');
upsert into TJOIN2 (RNUM, C1, C2) values ( 1, 15, 'DD');
upsert into TJOIN2 (RNUM, C1, C2) values ( 2, NULL, 'EE');
upsert into TJOIN2 (RNUM, C1, C2) values ( 3, 10, 'FF');
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)