pyspark.sql.functions.is_variant_null#
- pyspark.sql.functions.is_variant_null(v)[source]#
- Check if a variant value is a variant null. Returns true if and only if the input is a variant null and false otherwise (including in the case of SQL NULL). - New in version 4.0.0. - Parameters
- vColumnor str
- a variant column or column name 
 
- v
- Returns
- Column
- a boolean column indicating whether the variant value is a variant null 
 
 - Examples - >>> df = spark.createDataFrame([ {'json': '''{ "a" : 1 }'''} ]) >>> df.select(is_variant_null(parse_json(df.json)).alias("r")).collect() [Row(r=False)]