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-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to