ClickHouse/tests/queries/0_stateless/00897_flatten.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
648 B
MySQL
Raw Normal View History

2019-03-01 20:16:42 +00:00
SELECT flatten(arrayJoin([[[1, 2, 3], [4, 5]], [[6], [7, 8]]]));
2019-06-28 03:55:22 +00:00
SELECT arrayFlatten(arrayJoin([[[[]], [[1], [], [2, 3]]], [[[4]]]]));
2023-03-20 20:36:55 +00:00
SELECT flatten(arrayMap(x -> arrayMap(y -> arrayMap(z -> range(x), range(x)), range(x)), range(number))) FROM numbers(6);
SELECT flatten(arrayMap(x -> arrayMap(y -> arrayMap(z -> range(z), range(y)), range(x)), range(number))) FROM numbers(6);
SELECT flatten(arrayMap(x -> arrayMap(x -> arrayMap(x -> range(x), range(x)), range(x)), range(number))) FROM numbers(6) SETTINGS allow_experimental_analyzer=1;
2019-06-28 07:17:47 +00:00
SELECT arrayFlatten([[[1, 2, 3], [4, 5]], [[6], [7, 8]]]);
2019-06-28 03:55:22 +00:00
SELECT flatten([[[]]]);
SELECT arrayFlatten([]);