IS [ NOT ] DISTINCT FROM (Lakehouse v1)
Compares whether two expressions are equal (or not equal) with awareness of nullability, meaning it treats NULLs as known values for comparing equality.
SQL Syntax
Section titled “SQL Syntax”<expr1> IS [ NOT ] DISTINCT FROM <expr2>SQL Examples
Section titled “SQL Examples”SELECT NULL IS DISTINCT FROM NULL;
┌────────────────────────────┐│ null is distinct from null │├────────────────────────────┤│ false │└────────────────────────────┘