2015-10-19 18:49:52 +00:00
|
|
|
SELECT arrayStringConcat(['Hello', 'World']);
|
|
|
|
SELECT arrayStringConcat(materialize(['Hello', 'World']));
|
|
|
|
SELECT arrayStringConcat(['Hello', 'World'], ', ');
|
|
|
|
SELECT arrayStringConcat(materialize(['Hello', 'World']), ', ');
|
|
|
|
SELECT arrayStringConcat(emptyArrayString());
|
|
|
|
SELECT arrayStringConcat(arrayMap(x -> toString(x), range(number))) FROM system.numbers LIMIT 10;
|
|
|
|
SELECT arrayStringConcat(arrayMap(x -> toString(x), range(number)), '') FROM system.numbers LIMIT 10;
|
|
|
|
SELECT arrayStringConcat(arrayMap(x -> toString(x), range(number)), ',') FROM system.numbers LIMIT 10;
|
|
|
|
SELECT arrayStringConcat(arrayMap(x -> transform(x, [0, 1, 2, 3, 4, 5, 6, 7, 8], ['yandex', 'google', 'test', '123', '', 'hello', 'world', 'goodbye', 'xyz'], ''), arrayMap(x -> x % 9, range(number))), ' ') FROM system.numbers LIMIT 20;
|
|
|
|
SELECT arrayStringConcat(arrayMap(x -> toString(x), range(number % 4))) FROM system.numbers LIMIT 10;
|
2021-10-12 21:23:40 +00:00
|
|
|
SELECT arrayStringConcat([Null, 'hello', Null, 'world', Null, 'xyz', 'def', Null], ';');
|
|
|
|
SELECT arrayStringConcat([Null::Nullable(String), Null::Nullable(String)], ';');
|
2021-10-22 20:19:32 +00:00
|
|
|
SELECT arrayStringConcat(arr, ';') FROM (SELECT [1, 23, 456] AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, ';') FROM (SELECT [Null, 1, Null, 23, Null, 456, Null] AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT [toIPv4('127.0.0.1'), toIPv4('1.0.0.1')] AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT [toIPv4('127.0.0.1'), Null, toIPv4('1.0.0.1')] AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT [toDate('2021-10-01'), toDate('2021-10-02')] AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT [toDate('2021-10-01'), Null, toDate('2021-10-02')] AS arr);
|
2021-10-19 17:54:27 +00:00
|
|
|
SELECT arrayStringConcat(materialize([Null, 'hello', Null, 'world', Null, 'xyz', 'def', Null]), ';');
|
|
|
|
SELECT arrayStringConcat(materialize([Null::Nullable(String), Null::Nullable(String)]), ';');
|
2021-10-22 20:19:32 +00:00
|
|
|
SELECT arrayStringConcat(arr, ';') FROM (SELECT materialize([1, 23, 456]) AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, ';') FROM (SELECT materialize([Null, 1, Null, 23, Null, 456, Null]) AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT materialize([toIPv4('127.0.0.1'), toIPv4('1.0.0.1')]) AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT materialize([toIPv4('127.0.0.1'), Null, toIPv4('1.0.0.1')]) AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT materialize([toDate('2021-10-01'), toDate('2021-10-02')]) AS arr);
|
|
|
|
SELECT arrayStringConcat(arr, '; ') FROM (SELECT materialize([toDate('2021-10-01'), Null, toDate('2021-10-02')]) AS arr);
|