ClickHouse/dbms/tests/queries/0_stateless/00897_flatten.sql
Alexey Milovidov c55e70d8f8 Added test
2019-03-01 23:16:42 +03:00

4 lines
252 B
SQL

SELECT flatten(arrayJoin([[[1, 2, 3], [4, 5]], [[6], [7, 8]]]));
SELECT flatten(arrayJoin([[[[]], [[1], [], [2, 3]]], [[[4]]]]));
SELECT flatten(arrayMap(x -> arrayMap(x -> arrayMap(x -> range(x), range(x)), range(x)), range(number))) FROM numbers(6);