Fokko commented on code in PR #1618: URL: https://github.com/apache/iceberg-python/pull/1618#discussion_r1944881417
########## pyiceberg/expressions/literals.py: ########## @@ -149,6 +150,8 @@ def literal(value: L) -> Literal[L]: return DecimalLiteral(value) elif isinstance(value, datetime): return TimestampLiteral(datetime_to_micros(value)) # type: ignore + elif isinstance(value, date): + return DateLiteral(date_to_days(value)) Review Comment: ```suggestion return DateLiteral(date_to_days(value)) # type: ignore ``` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org