RishavTiwari25 commented on issue #26223:
URL: https://github.com/apache/datafusion/issues/26223#issuecomment-6130405052

   You're right, I worked through the example again. The exact value of `sum(x 
+ 1.0)` over `(1e16, 1.0, -1e16)` is 4.0, which is what the rewritten plan 
returns. The 2.0 only appears because `1e16 + 1.0` rounds back to `1e16` before 
the sum, so the rewrite is not losing precision here, it just associates the 
additions differently, and the un-rewritten sum already depends on partition 
order. I'll close #26241. Happy for this issue to be closed as not a bug.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to