log
function
Applies to: Databricks SQL Databricks Runtime
Returns the logarithm of expr
with base
.
Arguments
base
: An optional expression that evaluates to a numeric.expr
: An expression that evaluates to a numeric.
CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseUpdated Nov 21, 2024
log
function Applies to: Databricks SQL Databricks Runtime
Returns the logarithm of expr
with base
.
base
: An optional expression that evaluates to a numeric.
expr
: An expression that evaluates to a numeric.
A DOUBLE.
If base
or expr
are less than or equal to 0 the result is NULL.
log(expr)
is a synonym for ln(expr)
.