snowflake.snowpark.functions.array_cat¶
- snowflake.snowpark.functions.array_cat(array1: Union[Column, str], array2: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L5233-L5259)¶
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 | |] | ------------