diff --git a/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference b/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference new file mode 100644 index 00000000000..0c1eaef5ab3 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference @@ -0,0 +1,4 @@ +[(1,2),(2,3),(3,4)] +[(1,2)] +[(1,2,3),(2,3,4)] +[(4,3,1)] diff --git a/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql b/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql new file mode 100644 index 00000000000..e2ad9b54658 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql @@ -0,0 +1,16 @@ +SET send_logs_level = 'none'; + +DROP TABLE IF EXISTS array_of_tuples; + +CREATE TABLE array_of_tuples +( + first Array(Tuple(Float64, Float64)), + second Array(Tuple(UInt8, UInt16, UInt32)) +) ENGINE = Memory; + +INSERT INTO array_of_tuples values ([(1, 2), (2, 3), (3, 4)], array(tuple(1, 2, 3), tuple(2, 3, 4))), (array((1.0, 2.0)), [tuple(4, 3, 1)]); + +SELECT first from array_of_tuples; +SELECT second from array_of_tuples; + +DROP TABLE array_of_tuples;