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

snowflake.snowpark.functions.is_array

snowflake.snowpark.functions.is_array(col: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L4493-L4504)

Returns true if the specified VARIANT column contains an ARRAY value.

Examples:

>>> df = session.create_dataframe([[["element"], True]], schema=["a", "b"])
>>> df.select(is_array(df["a"]).alias("is_array_a"), is_array(df["b"]).alias("is_array_b")).collect()
[Row(IS_ARRAY_A=True, IS_ARRAY_B=False)]
Copy
Language: English