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

snowflake.snowpark.functions.is_array¶

snowflake.snowpark.functions.is_array(col: ColumnOrName) → Column[source]¶

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