anna-lscr commented on PR #27476:
URL: https://github.com/apache/datafusion/pull/27476#issuecomment-7010931443

   This PR actually partially addresses a broader issue, introduced by 
https://github.com/apache/datafusion/pull/16031.
   This PR swapped in `arg_list_to_binary_op_tree` (the balanced tree) for all 
of `name_to_op` functions, not just and/or. **That made subtract, divide, mod 
and float add/multiply wrong whenever a call has more than two arguments.** 
Nobody noticed because nothing in the repo ever sends arithmetic more than two 
arguments.
   
   It's also worth noting that integers too are impacted, not just floats (e.g. 
`subtract(10, 1, 2, 3)` which should return 4 and not 10).
   
   I'm working on addressing this broader issue in a separate PR. Thank you for 
finding this big 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