snowflake.snowpark.functions.is_null_value¶
- snowflake.snowpark.functions.is_null_value(col: Union[Column, str]) 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)]