arrayToString
This section contains reference documentation for the arrayToString function.
Last updated
Was this helpful?
This section contains reference documentation for the arrayToString function.
Joins a string array into a single string using a delimiter.
arrayToString(values, delimiter)
arrayToString(values, delimiter, nullString)
The 3-argument form replaces null or empty-string placeholder elements with nullString before joining.
These examples are based on Pinot's array function tests.
SELECT arrayToString(stringArray, '::') AS joinedValues
FROM myTableReturns 3::2::10::6::1::12 when stringArray is ['3', '2', '10', '6', '1', '12'].
SELECT arrayToString(stringArrayWithNulls, '::', '*') AS joinedValues
FROM myTableReturns 3::2::10::6::1::12::*::* when stringArrayWithNulls is ['3', '2', '10', '6', '1', '12', '', null].
Last updated
Was this helpful?
Was this helpful?

