daft.Expression.eq_null_safe#
- Expression.eq_null_safe(other: Expression) Expression [source]#
Performs a null-safe equality comparison between two expressions.
Unlike regular equality (==), null-safe equality (<=> or IS NOT DISTINCT FROM): - Returns True when comparing NULL <=> NULL - Returns False when comparing NULL <=> any_value - Behaves like regular equality for non-NULL values
- Parameters:
other – The expression to compare with
- Returns:
A boolean expression indicating if the values are equal
- Return type:
Expression