mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
9 lines
436 B
SQL
9 lines
436 B
SQL
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([1, 1, NULL, NULL, nan, nan, 2, 2, 2]);
|
|
SELECT arrayCompact(['hello', '', '', '', 'world', 'world']);
|
|
SELECT arrayCompact([[[]], [[], []], [[], []], [[]]]);
|
|
SELECT arrayCompact(x -> toString(intDiv(x, 3)), range(number)) FROM numbers(10);
|