Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
For Aggregate with grouping sets, group by keys might not form a unique key. For example:
//PostgreSQL create table test2(key bigint, value bigint); insert into test2 values (1, null), (null, 1); select key, value, count(*) from test2 group by GROUPING SETS (key,value) ; postgres=# select key, value, count(*) from test2 postgres-# group by GROUPING SETS (key,value) postgres-# ; key | value | count -----+-------+------- | | 1 1 | | 1 | | 1 | 1 | 1 (4 rows)
Attachments
Issue Links
- links to