mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Added a test
This commit is contained in:
parent
979db8c965
commit
92824e14e7
@ -0,0 +1,16 @@
|
|||||||
|
[]
|
||||||
|
[1,nan,nan,2]
|
||||||
|
[1,nan,nan,nan,2]
|
||||||
|
[1,NULL,2]
|
||||||
|
['hello','','world']
|
||||||
|
[[[]],[[],[]],[[]]]
|
||||||
|
[]
|
||||||
|
['0']
|
||||||
|
['0']
|
||||||
|
['0']
|
||||||
|
['0','1']
|
||||||
|
['0','1']
|
||||||
|
['0','1']
|
||||||
|
['0','1','2']
|
||||||
|
['0','1','2']
|
||||||
|
['0','1','2']
|
@ -0,0 +1,7 @@
|
|||||||
|
SELECT arrayCompact([]);
|
||||||
|
SELECT arrayCompact([1, 1, nan, nan, 2, 2, 2]);
|
||||||
|
SELECT arrayCompact([1, 1, nan, nan, -nan, 2, 2, 2]);
|
||||||
|
SELECT arrayCompact([1, 1, NULL, NULL, 2, 2, 2]);
|
||||||
|
SELECT arrayCompact(['hello', '', '', '', 'world', 'world']);
|
||||||
|
SELECT arrayCompact([[[]], [[], []], [[], []], [[]]]);
|
||||||
|
SELECT arrayCompact(x -> toString(intDiv(x, 3)), range(number)) FROM numbers(10);
|
Loading…
Reference in New Issue
Block a user