More tests [#METR-21863].

This commit is contained in:
Alexey Milovidov 2016-06-29 00:35:49 +03:00
parent e38030fe5d
commit b18453103e
2 changed files with 20 additions and 0 deletions

View File

@ -1,2 +1,12 @@
['']
['abc']
['abc','def'] 1
['abc','def'] 2
['abc','def'] 3
[] 1
[] 2
['Hello'] 1
['Hello'] 2
['x','y','z'] 4
['x','y','z'] 5
['x','y','z'] 6

View File

@ -16,3 +16,13 @@ INSERT INTO test.bad_arrays VALUES ([''],[]),([''],[]),([''],[]),([''],[]),(['']
SELECT a FROM test.bad_arrays ARRAY JOIN b;
DROP TABLE test.bad_arrays;
DROP TABLE IF EXISTS test.bad_arrays;
CREATE TABLE test.bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory;
INSERT INTO test.bad_arrays VALUES (['abc','def'],[1,2,3]),([],[1,2]),(['a','b'],[]),(['Hello'],[1,2]),([],[]),(['x','y','z'],[4,5,6]);
SELECT a, b FROM test.bad_arrays ARRAY JOIN b;
DROP TABLE test.bad_arrays;