You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.functions.array_to_string¶

snowflake.snowpark.functions.array_to_string(array: ColumnOrName, separator: ColumnOrName) → Column[source]¶

Returns an input ARRAY converted to a string by casting all values to strings (using TO_VARCHAR) and concatenating them (using the string from the second argument to separate the elements).

Parameters:
  • array – Column containing the ARRAY of elements to convert to a string.

  • separator – Column containing the string to put between each element (e.g. a space, comma, or other human-readable separator).