Fokko commented on PR #3921:
URL: https://github.com/apache/iceberg-python/pull/3921#issuecomment-5581548900
Thanks for raising this @ptimizeroracle and this is great catch! Java
handles the NaN value correctly as part of the comparator. This isn't the case
for PyIceberg:
```
➜ ~ python3
Python 3.14.7 (main, Aug 5 2026, 10:29:49) [Clang 21.0.0
(clang-2100.1.1.101)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> float('NaN')
nan
>>> float('NaN') > 1
False
```
From the Iceberg spec:
<img width="778" height="88" alt="image"
src="https://github.com/user-attachments/assets/92931937-a680-40e1-b39f-c1719f60a7d8"
/>
Can you elaborate on why this introduces unreliable bounds?
--
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]