From b18453103effc0f8ecb12e445af97ec038134550 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 29 Jun 2016 00:35:49 +0300 Subject: [PATCH] More tests [#METR-21863]. --- .../00338_replicate_array_of_strings.reference | 10 ++++++++++ .../0_stateless/00338_replicate_array_of_strings.sql | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.reference b/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.reference index 66a495d629f..ff07524a4bb 100644 --- a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.reference +++ b/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.reference @@ -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 diff --git a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql b/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql index b51ca67e578..40078981c47 100644 --- a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql +++ b/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql @@ -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;