snowflake.snowpark.functions.is_null_value

snowflake.snowpark.functions.is_null_value(col: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L5650-L5663)

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
Language: English