You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "raman20 (via GitHub)" <gi...@apache.org> on 2026/06/08 04:49:51 UTC
Re: [I] `log(base, val)` loses precision when `value` is `Float32` [datafusion]
raman20 commented on issue #22581:
URL: https://github.com/apache/datafusion/issues/22581#issuecomment-4645564766
I guess this is fixed
```
> SELECT log(arrow_cast(16777217,'Float64'), arrow_cast(2.0,'Float32'));
+-----------------------------------------------------------------------------------------+
| log(arrow_cast(Int64(16777217),Utf8("Float64")),arrow_cast(Float64(2),Utf8("Float32"))) |
+-----------------------------------------------------------------------------------------+
| 0.041666666517376175 |
+-----------------------------------------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.004 seconds.
> select log(arrow_cast(16777217,'Float64'), arrow_cast(2.0,'Float64'));
+-----------------------------------------------------------------------------------------+
| log(arrow_cast(Int64(16777217),Utf8("Float64")),arrow_cast(Float64(2),Utf8("Float64"))) |
+-----------------------------------------------------------------------------------------+
| 0.041666666517376175 |
+-----------------------------------------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.004 seconds.
```
--
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