jackylee-ch commented on PR #10175:
URL: https://github.com/apache/paimon/pull/10175#issuecomment-5967213521
Thanks — fixed in 02d5140f0. `_normalize_array_literals` now widens an
accepted numeric literal to `float` for a DOUBLE array too (not just float32
for FLOAT), so an integer `0` reaches the signed-zero-aware comparator instead
of falling back to Python `==`. `array_contains('doubles', 0)` /
`arrays_overlap` / `array_contains_all` now match only the `+0.0` rows, same as
the `0.0` spelling.
Added `test_integer_zero_literal_matches_double_zero_spelling` covering all
three methods on persisted negative/positive-zero rows; dropping the DOUBLE
normalization makes it return the extra `-0.0` row. flake8 and `git diff
--check` clean.
--
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]