Fixed wrong test [#CLICKHOUSE-2785].

This commit is contained in:
Alexey Milovidov 2017-01-30 11:28:42 +03:00
parent 509662a24d
commit 4ae2bed9b6
2 changed files with 35 additions and 35 deletions

View File

@ -275,52 +275,52 @@ a
0 0
0 0
1 1
C \N 3
B 1 4
A 0 2 A 0 2
A 1 2
B 1 4
C 1 1 C 1 1
\N \N 1 C \N 3
\N 1 1 \N 1 1
A 1 2 \N \N 1
C \N 3
B 1 4
A 0 2 A 0 2
C 1 1
A 1 2 A 1 2
B 4 B 1 4
C 4 C 1 1
C \N 3
\N 2 \N 2
A 4 A 4
B 4
C 4
\N 3
0 2 0 2
1 7 1 7
\N 3
\N 2 1
1 2 2
1 5 3
0 2 1 0 2 1
\N 3 2
0 3 1 0 3 1
1 2 2
1 3 2 1 3 2
1 5 \N 1 1 5 3
1 5 1 2 \N 2 1
\N 3 2
0 2 1 1 0 2 1 1
\N 3 \N 1
1 2 1 1
\N 2 \N 1
1 2 \N 1
1 3 \N 1
\N 3 1 1
1 3 1 1
0 3 \N 1 0 3 \N 1
[0] 2 1 2 1 1
1 2 \N 1
1 3 1 1
1 3 \N 1
1 5 1 2
1 5 \N 1
\N 2 \N 1
\N 3 1 1
\N 3 \N 1
\N 3 \N 3
[0] 2
[1] 7 [1] 7
[0] 2
[1] 7 [1] 7
[NULL] 3 [NULL] 3
[0] 2 [0] [0] 2
[1] [1] 6 [1] [1] 6
[1] [NULL] 1 [1] [NULL] 1
[0] [0] 2
\N [1] 1 \N [1] 1
\N [NULL] 2 \N [NULL] 2
[0] [0] [0] [0]

View File

@ -367,7 +367,7 @@ INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH');
INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 1, 'ACDEFGBH'); INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 1, 'ACDEFGBH');
INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, NULL, 'ACDEFGHB'); INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, NULL, 'ACDEFGHB');
SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2; SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 String, col2 Nullable(UInt8), col3 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 String, col2 Nullable(UInt8), col3 String) ENGINE=TinyLog;
@ -384,7 +384,7 @@ INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDBEFGH');
INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEBFGH'); INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEBFGH');
INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH'); INSERT INTO test.test1(col1,col2,col3) VALUES('C', NULL, 'ACDEFBGH');
SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2; SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Nullable(String), col2 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Nullable(String), col2 String) ENGINE=TinyLog;
@ -403,7 +403,7 @@ INSERT INTO test.test1(col1,col2) VALUES('C', 'ACDEFBGH');
INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFGBH'); INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFGBH');
INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFGHB'); INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFGHB');
SELECT col1, count() FROM test.test1 GROUP BY col1; SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Nullable(UInt8), col2 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Nullable(UInt8), col2 String) ENGINE=TinyLog;
@ -420,7 +420,7 @@ INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDBEFGH');
INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEBFGH'); INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEBFGH');
INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFBGH'); INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFBGH');
SELECT col1, count() FROM test.test1 GROUP BY col1; SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64, col3 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64, col3 String) ENGINE=TinyLog;
@ -437,7 +437,7 @@ INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 2, 'ACDBEFGH');
INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEBFGH'); INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEBFGH');
INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEFBGH'); INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, 3, 'ACDEFBGH');
SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2; SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64, col3 Nullable(UInt64), col4 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Nullable(UInt64), col2 UInt64, col3 Nullable(UInt64), col4 String) ENGINE=TinyLog;
@ -454,7 +454,7 @@ INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 2, NULL, 'ACDBEFGH');
INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 3, 1, 'ACDEBFGH'); INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 3, 1, 'ACDEBFGH');
INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 3, NULL, 'ACDEFBGH'); INSERT INTO test.test1(col1,col2,col3,col4) VALUES(NULL, 3, NULL, 'ACDEFBGH');
SELECT col1, col2, col3, count() FROM test.test1 GROUP BY col1, col2, col3; SELECT col1, col2, col3, count() FROM test.test1 GROUP BY col1, col2, col3 ORDER BY col1, col2, col3;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Nullable(Array(UInt8)), col2 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Nullable(Array(UInt8)), col2 String) ENGINE=TinyLog;
@ -471,7 +471,7 @@ INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDBEFGH');
INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEBFGH'); INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEBFGH');
INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFBGH'); INSERT INTO test.test1(col1,col2) VALUES(NULL, 'ACDEFBGH');
SELECT col1, count() FROM test.test1 GROUP BY col1; SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Array(Nullable(UInt8)), col2 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Array(Nullable(UInt8)), col2 String) ENGINE=TinyLog;
@ -488,7 +488,7 @@ INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDBEFGH');
INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDEBFGH'); INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDEBFGH');
INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDEFBGH'); INSERT INTO test.test1(col1,col2) VALUES([NULL], 'ACDEFBGH');
SELECT col1, count() FROM test.test1 GROUP BY col1; SELECT col1, count() FROM test.test1 GROUP BY col1 ORDER BY col1;
DROP TABLE IF EXISTS test.test1; DROP TABLE IF EXISTS test.test1;
CREATE TABLE test.test1(col1 Nullable(Array(UInt8)), col2 Array(Nullable(UInt8)), col3 String) ENGINE=TinyLog; CREATE TABLE test.test1(col1 Nullable(Array(UInt8)), col2 Array(Nullable(UInt8)), col3 String) ENGINE=TinyLog;
@ -505,5 +505,5 @@ INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, [1], 'ACDBEFGH');
INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, [NULL], 'ACDEBFGH'); INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, [NULL], 'ACDEBFGH');
INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, [NULL], 'ACDEFBGH'); INSERT INTO test.test1(col1,col2,col3) VALUES(NULL, [NULL], 'ACDEFBGH');
SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2; SELECT col1, col2, count() FROM test.test1 GROUP BY col1, col2 ORDER BY col1, col2;
SELECT DISTINCT col1, col2 FROM test.test1 ORDER BY col1, col2; SELECT DISTINCT col1, col2 FROM test.test1 ORDER BY col1, col2;