Scalar functions to implement conditional logic
Arroyo’s Scalar function implementations are based on Apache DataFusion and these docs are derived from the DataFusion function reference.
coalesce
Returns the first of its arguments that is not null. Returns null if all arguments are null. This function is often used to substitute a default value for null values.
Arguments
nullif
Returns null if expression1 equals expression2; otherwise it returns expression1.
This can be used to perform the inverse operation of coalesce
.
Arguments
nvl
Returns expression2 if expression1 is NULL; otherwise it returns expression1.
Arguments
nvl2
Returns expression2 if expression1 is not NULL; otherwise it returns expression3.
Arguments
ifnull
Alias of nvl.
Scalar functions to implement conditional logic
Arroyo’s Scalar function implementations are based on Apache DataFusion and these docs are derived from the DataFusion function reference.
coalesce
Returns the first of its arguments that is not null. Returns null if all arguments are null. This function is often used to substitute a default value for null values.
Arguments
nullif
Returns null if expression1 equals expression2; otherwise it returns expression1.
This can be used to perform the inverse operation of coalesce
.
Arguments
nvl
Returns expression2 if expression1 is NULL; otherwise it returns expression1.
Arguments
nvl2
Returns expression2 if expression1 is not NULL; otherwise it returns expression3.
Arguments
ifnull
Alias of nvl.