Added a test [#CLICKHOUSE-3855]

This commit is contained in:
Alexey Milovidov 2018-07-27 21:17:32 +03:00
parent bbdd780be0
commit 448bcdfdb4
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,7 @@
1 1
0 1
1 1
0 1
1 1
0 8
1 2

View File

@ -0,0 +1,12 @@
SELECT dummy IN (0) AS x, count() GROUP BY x;
SELECT 1 IN (0) AS x, count() GROUP BY x;
SELECT 0 IN (0) AS x, count() GROUP BY x;
SELECT materialize(1) IN (0) AS x, count() GROUP BY x;
SELECT materialize(0) IN (0) AS x, count() GROUP BY x;
SELECT
number IN (1, 2) AS x,
count()
FROM numbers(10)
GROUP BY x;