Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
Impala 2.2.4
-
None
Description
To reproduce:
create table foo(a int);
insert into foo values (1), (1);
select 1 from foo having count(*) = 1;
1
1
select 1 from foo having count(*) = 2;
1
1
In Postgres the same queries return:
select 1 from foo having count(*) = 1; (0 rows) select 1 from foo having count(*) = 2; 1