IS [ NOT ] DISTINCT FROM
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
<expr1> IS [ NOT ] DISTINCT FROM <expr2>
SQL Examples
SELECT NULL IS DISTINCT FROM NULL;
┌────────────────────────────┐
│ null is distinct from null │
├────────────────────────────┤
│ false │
└────────────────────────────┘
Last modified March 27, 2024 at 12:01 PM EST: adding databend functions and removing PostGID and MADLib (b049aed)