2015-07-26 10:40:32 +00:00
|
|
|
SELECT emptyArrayToSingle(arrayFilter(x -> x != 99, arrayJoin([[1, 2], [99], [4, 5, 6]])));
|
2021-04-02 22:57:04 +00:00
|
|
|
SELECT emptyArrayToSingle(emptyArrayString()), emptyArrayToSingle(emptyArrayDate()), emptyArrayToSingle(arrayFilter(x -> 0, [now('Europe/Moscow')]));
|
2015-07-26 10:40:32 +00:00
|
|
|
|
2020-07-13 02:26:22 +00:00
|
|
|
SELECT
|
|
|
|
emptyArrayToSingle(range(number % 3)),
|
|
|
|
emptyArrayToSingle(arrayMap(x -> toString(x), range(number % 2))),
|
|
|
|
emptyArrayToSingle(arrayMap(x -> toDateTime('2015-01-01 00:00:00', 'UTC') + x, range(number % 5))),
|
2015-07-26 10:40:32 +00:00
|
|
|
emptyArrayToSingle(arrayMap(x -> toDate('2015-01-01') + x, range(number % 4))) FROM system.numbers LIMIT 10;
|