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

snowflake.snowpark.functions.array_cat

snowflake.snowpark.functions.array_cat(array1: Union[Column, str], array2: Union[Column, str]) Column[source]

Returns the concatenation of two ARRAYs.

Parameters:
  • array1 – Column containing the source ARRAY.

  • array2 – Column containing the ARRAY to be appended to array1.

Example::
>>> from snowflake.snowpark import Row
>>> df = session.create_dataframe([Row(a=[1, 2, 3], b=[4, 5])])
>>> df.select(array_cat("a", "b").alias("result")).show()
------------
|"RESULT"  |
------------
|[         |
|  1,      |
|  2,      |
|  3,      |
|  4,      |
|  5       |
|]         |
------------
Copy