jackylee-ch commented on PR #10175:
URL: https://github.com/apache/paimon/pull/10175#issuecomment-5954387907
Fixed in de846e431. The array predicates now compare elements with Java's
element contract instead of plain Python membership:
- the builder normalizes a FLOAT array's literals to float32, so
`array_contains('floats', 0.1)` matches a stored `0.1` (float32
`0.10000000149…`) rather than missing it;
- element equality treats NaN as equal to a stored NaN and distinguishes
signed zero (`+0.0` ≠ `-0.0`), mirroring `Double.compare`/`Float.compare`.
Non-float element types keep exact `==` semantics. Added
`ArrayPredicateNumericTest` covering float32 precision, NaN, and signed zero
across `array_contains`; neutralizing either half (literal normalization or the
typed comparison) fails them. 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]