mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
12 lines
378 B
SQL
12 lines
378 B
SQL
select arrayCompact([0]);
|
|
select arrayCompact([1]);
|
|
select arrayCompact([2]);
|
|
select arrayCompact([1,1]);
|
|
select arrayCompact([1,2]);
|
|
select arrayCompact([1,1,2]);
|
|
select arrayCompact([1,2,1]);
|
|
select arrayCompact([2,1,1]);
|
|
select arrayCompact([1,2,2,3,3,3,4,4,4,4,5,5,5,5,5]);
|
|
SELECT arrayCompact(arrayMap(x->0, [NULL]));
|
|
SELECT toString(arrayCompact(arrayMap(x->0, [NULL])));
|