mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test
This commit is contained in:
parent
bc25bedbd4
commit
c55e70d8f8
10
dbms/tests/queries/0_stateless/00897_flatten.reference
Normal file
10
dbms/tests/queries/0_stateless/00897_flatten.reference
Normal 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]
|
3
dbms/tests/queries/0_stateless/00897_flatten.sql
Normal file
3
dbms/tests/queries/0_stateless/00897_flatten.sql
Normal 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);
|
Loading…
Reference in New Issue
Block a user