kevinjqliu opened a new pull request, #3546: URL: https://github.com/apache/iceberg-python/pull/3546
## Rationale for this change LongLiteral.to(DateType) was constructing DateLiteral values outside the int-backed Iceberg date range. Java returns overflow sentinels for long-to-date narrowing, and PyIceberg already uses those sentinels to simplify out-of-range predicates. This updates long-to-date conversion to return IntAboveMax or IntBelowMin when the literal falls outside the valid date range. ## Are these changes tested? Yes: - PYTHONPATH=. python -m pytest tests/expressions/test_literals.py tests/expressions/test_expressions.py - commit hooks also ran successfully during git commit ## Are there any user-facing changes? Yes. Out-of-range date predicates now simplify using the existing overflow sentinel behavior instead of carrying impossible DateLiteral values. -- 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]
