IS_NULL_VALUE (Lakehouse v1)
Checks whether the input value is a JSON null. Please note that this function examines JSON null, not SQL NULL. To check if a value is SQL NULL, use IS_NULL.
{ "name": "John", "age": null}Analyze Syntax
Section titled “Analyze Syntax”func.is_null_value(<expr>)Analyze Examples
Section titled “Analyze Examples”func.is_null_value(func.get_path(func.parse_json('{"k1":[0,1,2], "k2":{"k3":3,"k4":4}}'), 'k2.k5'))┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐│ func.is_null_value(func.get_path(func.parse_json('{"k1":[0,1,2], "k2":{"k3":3,"k4":4}}'), 'k2.k5')) │├─────────────────────────────────────────────────────────────────────────────────────────────────────┤│ true │└─────────────────────────────────────────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”IS_NULL_VALUE( <expr> )Return Type
Section titled “Return Type”Returns true if the input value is a JSON null, and false otherwise.
SQL Examples
Section titled “SQL Examples”SELECT IS_NULL_VALUE(PARSE_JSON('{"name":"John", "age":null}') :age), --JSON null IS_NULL(NULL); --SQL NULL
┌──────────────────────────────────────────────────────────────────────────────┐│ is_null_value(parse_json('{"name":"john", "age":null}'):age) │ is_null(null) │├──────────────────────────────────────────────────────────────┼───────────────┤│ true │ true │└──────────────────────────────────────────────────────────────────────────────┘