You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "theirix (via GitHub)" <gi...@apache.org> on 2025/08/12 10:25:00 UTC
[I] feat: support decimal for math functions: log [datafusion]
theirix opened a new issue, #17140:
URL: https://github.com/apache/datafusion/issues/17140
### Is your feature request related to a problem or challenge?
Math functions in [datafusion-functions](https://github.com/apache/datafusion/blob/main/datafusion/functions/src/math/mod.rs) do not support Decimal128, Decimal256 directly, casting the input to floats. Since #14612 is near, it's reasonable to add first-class support for decimals.
### Describe the solution you'd like
In a linked PR, I decided to start from the explicitly defined `log` function in [math/log.rs](https://github.com/apache/datafusion/blob/main/datafusion/functions/src/math/log.rs). It's not trivial because of the optional argument with base and combinations.
Later, it'd be worth introducing a similar support to the `make_math_unary_udf!` macro – a subject of future work.
### Describe alternatives you've considered
Not handling Decimals explicitly decreases precision and disallows using math on large decimals.
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] feat: support decimal for math functions: log [datafusion]
Posted by "theirix (via GitHub)" <gi...@apache.org>.
theirix commented on issue #17140:
URL: https://github.com/apache/datafusion/issues/17140#issuecomment-3178733766
take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] feat: support decimal for math functions: log [datafusion]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey closed issue #17140: feat: support decimal for math functions: log
URL: https://github.com/apache/datafusion/issues/17140
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org