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

snowflake.snowpark.functions.is_null_value

snowflake.snowpark.functions.is_null_value(col: ColumnOrName) Column[source]

Returns true if the specified VARIANT column contains a JSON null value.

Example:

>>> from snowflake.snowpark.functions import to_variant, is_null_value
>>> df = session.create_dataframe([[{"a": "foo"}], [{"a": None}], [None]], schema=["a"])
>>> df.select(is_null_value(to_variant("a")["a"]).as_("a")).collect()
[Row(A=False), Row(A=True), Row(A=None)]
Copy