Nagato-Yuzuru commented on PR #27433:
URL: https://github.com/apache/datafusion/pull/27433#issuecomment-7109908806

   Thanks @Amogh-2404. I checked the parts that I thought could be a few 
problem, they look correct. 
   
   I checked those:
   
   `div` is also used as an inverse operator in 
`cp_solver::propagate_arithmetic`, e.g. to solve a * b = c, where b = 0 is a 
valid value. The integer guard in 
[`BinaryExpr::propagate_constraints`](https://github.com/apache/datafusion/blob/a79cdbcc555f090626b37a74e014cafbb3e7b334/datafusion/physical-expr/src/expressions/binary.rs#L723-L751)
 stops integer inputs before they get there, so valid values are not removed. 
   
   The issue also asks to keep the overflow handling. i64::MIN / -1 can now set 
the bound, and it still gives an unbounded result: [i64::MIN, 10] / [-1, 0] 
gives [-10, +inf).


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