kevinjqliu opened a new issue, #3494: URL: https://github.com/apache/iceberg-python/issues/3494
### Describe the bug `LongLiteral.to(FloatType)` raises `OverflowError` for integers outside the float range instead of returning `FloatAboveMax` / `FloatBelowMin`. ### Reproducer ```python from pyiceberg.expressions import literal from pyiceberg.types import FloatType literal(10**39).to(FloatType()) # OverflowError: float too large to pack with f format ``` ### Expected behavior Values above or below `FloatType` bounds should return the float overflow sentinels, matching `DecimalLiteral.to(FloatType)` and `StringLiteral.to(FloatType)`. -- 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]
