Skip to main content
Version: current [25.x]

Categories: Boolean, Datatype

IS [NOT] DISTINCT FROM

Compares two expressions to determine whether they have the same or different values. NULLs are considered as comparable values.

Syntax

IS [NOT] DISTINCT FROM(expression any) → boolean

  • expression: Can be a general expression of any Dremio-supported data type.

Examples

IS [NOT] DISTINCT FROM example
SELECT NULL IS DISTINCT
FROM NULL
-- False
IS [NOT] DISTINCT FROM example
SELECT NULL IS NOT DISTINCT
FROM NULL
-- True