dbms: modified test [#METR-17361].

This commit is contained in:
Alexey Milovidov 2015-07-18 07:21:04 +03:00
parent d5a69e8e31
commit aa225476e8
2 changed files with 18 additions and 0 deletions

View File

@ -4,3 +4,20 @@
[0,1,2,3,4] 1
[0,1,2,3,4,5,6] 1
[0,1,2,3,4,5,6,7,8] 1
[] [] 4
[] [0,1,2,3] 1
[] [0,1,2,3,4,5] 1
[] [0,1,2,3,4,5,6,7,8,9] 1
[] [0,1,2,3,4,5,6,7,8,9,10,11] 1
[] [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] 1
[] [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17] 1
[0] [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18] 1
[0,1,2] [] 1
[0,1,2,3,4] [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14] 1
[0,1,2,3,4,5,6] [0,1,2,3,4,5,6,7,8,9,10,11,12] 1
[0,1,2,3,4,5,6,7,8] [] 1
[0,1,2,3,4,5,6,7,8,9,10] [0,1,2,3,4,5,6,7,8] 1
[0,1,2,3,4,5,6,7,8,9,10,11,12] [0,1,2,3,4,5,6] 1
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14] [] 1
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] [0,1,2] 1
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18] [0] 1

View File

@ -1 +1,2 @@
SELECT range(x) AS k, count() FROM (SELECT number % 2 ? number : 0 AS x FROM system.numbers LIMIT 10) GROUP BY k ORDER BY k;
SELECT range(x) AS k1, range(y) AS k2, count() FROM (SELECT number % 2 ? number : 0 AS x, number % 3 ? toUInt64(20 - number) : 0 AS y FROM system.numbers LIMIT 20) GROUP BY k1, k2 ORDER BY k1, k2;