ln
The natural logarithm (hint_math).
Flags
| Flag | Value |
|---|---|
| Kind | scalar |
| Nulls | a null argument gives null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
Example
A pipeline from the language's tested corpus that uses ln, over the example tables.
from orders
filter price > 0e0
derive {s = sqrt(price), e = exp(1e-3), l = ln(price), l1 = ln_1p(price), em = expm1(1e-3)}In a plan:
{
"args": [
{
"col": 4
}
],
"fn": "ln"
}