Added test [#METR-22035].

This commit is contained in:
Alexey Milovidov 2016-07-10 19:04:25 +03:00
parent f5f38e1e50
commit 6912bfa6be
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,17 @@
0 0 (0,0) [0,0]
1 1 (1,1) [1,1]
2 2 (2,2) [2,2]
0 3 (0,3) [0,3]
1 4 (1,4) [1,4]
2 0 (2,0) [2,0]
0 1 (0,1) [0,1]
1 2 (1,2) [1,2]
2 3 (2,3) [2,3]
0 4 (0,4) [0,4]
1 0 (1,0) [1,0]
2 1 (2,1) [2,1]
0 2 (0,2) [0,2]
1 3 (1,3) [1,3]
2 4 (2,4) [2,4]
2 2
2 2

View File

@ -0,0 +1,3 @@
SELECT DISTINCT number % 3, number % 5, (number % 3, number % 5), [number % 3, number % 5] FROM (SELECT * FROM system.numbers LIMIT 100);
SELECT count(), count(DISTINCT x, y) FROM (SELECT DISTINCT * FROM (SELECT 'a\0b' AS x, 'c' AS y UNION ALL SELECT 'a', 'b\0c'));
SELECT count(), count(DISTINCT x, y) FROM (SELECT DISTINCT * FROM (SELECT [1, 2] AS x, [3] AS y UNION ALL SELECT [1], [2, 3]));