mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +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])));
|