Applies to: Databricks SQL Databricks Runtime
Returns the remainder after
dividend / divisor. This function is equivalent to the % (percent sign) operator.
dividend: An expression that evaluates to a numeric.
divisor: An expression that evaluates to a numeric.
divisor are of
DECIMAL, the result matches the divisor’s type.
In all other cases, a DOUBLE.
divisor is 0, the function raises a DIVIDE_BY_ZERO error.