-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SQL function overload LOG(base, x)
for logarithm of x to base
#5206
Comments
LOG(x, base)
for logarithm of $x$ to base $b$
LOG(x, base)
for logarithm of $x$ to base $b$LOG(x, base)
for logarithm of x to base
LOG(x, base)
for logarithm of x to baseLOG(base, x)
for logarithm of x to base
@alamb on top of my head we dont have overloaded scalar functions yet? |
@comphead there are already examples in DF of this, for example the |
Thanks @stuartcarnie with |
In the case of the
|
@comphead no worries – I looked for other solutions too, but that is all I could find for now. |
Thats okay, I'll implement it using |
@comphead awesome, thanks for doing that! |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As a user, I would like to determine the logarithm of a value,$x$ to base $b$ .
Describe the solution you'd like
Add an overload to the
log
function, which takes two arguments. Using PostgreSQL for inspiration per the documentation:Describe alternatives you've considered
DataFusion strives for PostgreSQL compatibility, so it makes sense to use the PostgreSQL solution.
Additional context
The text was updated successfully, but these errors were encountered: