comphead commented on issue #7121:
URL: 
https://github.com/apache/arrow-datafusion/issues/7121#issuecomment-1654989138

   I would still treat this as a bug, my vision the problem is DF cannot 
identify correctly decimal as a input and does implicit conversion to the f64 
which is not expected.
   
   Both Postgres and Spark returns correct result for 
   ```
   select 6.4053151420411946063694043751862251568 + 1;
   
   7.4053151420411946063694043751862251568
   ```
   
   whereas DF likely does unneccessary cast and thus loss of precision
   
   ```
   
   ❯ select 6.4053151420411946063694043751862251568 + 1;
   +---------------------------------------+
   | Float64(6.405315142041195) + Int64(1) |
   +---------------------------------------+
   | 7.405315142041195                     |
   +---------------------------------------+
   1 row in set. Query took 0.057 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to