mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
17 lines
592 B
SQL
17 lines
592 B
SQL
-- triggers assertion in debug build
|
|
|
|
DROP TABLE IF EXISTS test.rollup_having;
|
|
CREATE TABLE test.rollup_having (
|
|
a Nullable(String),
|
|
b Nullable(String)
|
|
) ENGINE = Memory;
|
|
|
|
INSERT INTO test.rollup_having VALUES (NULL, NULL);
|
|
INSERT INTO test.rollup_having VALUES ('a', NULL);
|
|
INSERT INTO test.rollup_having VALUES ('a', 'b');
|
|
|
|
SELECT a, b, count(*) FROM test.rollup_having GROUP BY a, b WITH ROLLUP WITH TOTALS HAVING a IS NOT NULL;
|
|
SELECT a, b, count(*) FROM test.rollup_having GROUP BY a, b WITH ROLLUP WITH TOTALS HAVING a IS NOT NULL and b IS NOT NULL;
|
|
|
|
DROP TABLE test.rollup_having;
|