jackylee-ch commented on PR #10175:
URL: https://github.com/apache/paimon/pull/10175#issuecomment-5986719120

   Good catch, fixed in 581c4b102. `_to_float32` now catches the 
`OverflowError` from `struct.pack('<f', ...)` on a finite double beyond the 
float32 range and returns the signed infinity, matching Java 
`Number.floatValue()` and PyArrow float32 narrowing — instead of aborting the 
predicate build. Added a regression test over a FLOAT array holding +inf/-inf 
asserting all three methods (array_contains / arrays_overlap / 
array_contains_all) match the stored infinity for a `1e40` / `-1e40` literal. 
Mutant-checked: reverting the catch reproduces the `OverflowError`.
   


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