Enhanced test [#CLICKHOUSE-3608]

This commit is contained in:
Alexey Milovidov 2018-02-21 04:39:46 +03:00
parent 3dd665179e
commit f6eb5b4b01
2 changed files with 14 additions and 0 deletions

View File

@ -3,3 +3,13 @@
[0,0,0,0,0]
[0,0,0,0,0,0,0]
[0,0,0,0,0,0,0,0,0]
[0]
[0,2,4]
[0,2,4,6,8]
[0,2,4,6,8,10,12]
[0,2,4,6,8,10,12,14,16]
[0] [0]
[0,1,2] [0,2,4]
[0,1,2,3,4] [0,2,4,6,8]
[0,1,2,3,4,5,6] [0,2,4,6,8,10,12]
[0,1,2,3,4,5,6,7,8] [0,2,4,6,8,10,12,14,16]

View File

@ -6,4 +6,8 @@ INSERT INTO test.nested SELECT number, number % 2, range(number % 10) FROM syste
ALTER TABLE test.nested ADD COLUMN n.b Array(UInt64);
SELECT DISTINCT n.b FROM test.nested PREWHERE filter;
ALTER TABLE test.nested ADD COLUMN n.c Array(UInt64) DEFAULT arrayMap(x -> x * 2, n.a);
SELECT DISTINCT n.c FROM test.nested PREWHERE filter;
SELECT DISTINCT n.a, n.c FROM test.nested PREWHERE filter;
DROP TABLE test.nested;