NULLIF (Lakehouse v1)
Returns NULL if two expressions are equal. Otherwise return expr1. They must have the same data type.
Analyze Syntax
Section titled “Analyze Syntax”func.nullif(<expr1>, <expr2>)Analyze Examples
Section titled “Analyze Examples”func.nullif(0, null)
┌──────────────────────┐│ func.nullif(0, null) │├──────────────────────┤│ 0 │└──────────────────────┘SQL Syntax
Section titled “SQL Syntax”NULLIF(<expr1>, <expr2>)SQL Examples
Section titled “SQL Examples”SELECT NULLIF(0, NULL);
┌─────────────────┐│ nullif(0, null) │├─────────────────┤│ 0 │└─────────────────┘