Added test

This commit is contained in:
Alexey Milovidov 2019-03-01 23:16:42 +03:00
parent bc25bedbd4
commit c55e70d8f8
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[1,2,3,4,5]
[6,7,8]
[1,2,3]
[4]
[]
[]
[0]
[0,0,1,0,1,0,1,0,1]
[0,0,1,0,1,0,1,0,1,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2]
[0,0,1,0,1,0,1,0,1,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3,0,1,2,3]

View File

@ -0,0 +1,3 @@
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);