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
clauseAtualizado 01/11/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)
.