nullifzero
function
December 13, 2024
Applies to: Databricks Runtime 16.0 and later
Returns NULL
if expr
is 0
, or expr
otherwise. This function is a synonym for `if(expr = 0, null, expr)`.
In this article:
Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseUpdated Feb 18, 2025
nullifzero
function December 13, 2024
Applies to: Databricks Runtime 16.0 and later
Returns NULL
if expr
is 0
, or expr
otherwise. This function is a synonym for `if(expr = 0, null, expr)`.