mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
15 lines
729 B
MySQL
15 lines
729 B
MySQL
|
SELECT arrayDistinct(arrayMap(x -> 0, range(2))) FROM numbers(2);
|
||
|
|
||
|
SELECT arrayDistinct(materialize([[0], [0]])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize(['', '', ''])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize([0, 0, 0])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize([0, 1, 1, 0])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize(['', 'Hello', ''])) FROM numbers(2);
|
||
|
|
||
|
|
||
|
SELECT arrayDistinct(materialize([[0], [0]])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize(['', NULL, ''])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize([0, NULL, 0])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize([0, 1, NULL, 0])) FROM numbers(2);
|
||
|
SELECT arrayDistinct(materialize(['', 'Hello', NULL])) FROM numbers(2);
|