Read a naive datetime in older_than as local time (#4220) expire_snapshots().older_than() converted its cutoff with datetime_to_millis, which reads a naive datetime as UTC. The docs call it with datetime.now() - timedelta(...), a naive local time, so east of UTC the cutoff landed later and expired snapshots that should be kept, and west of UTC it landed earlier. A naive datetime is now read as local time, as datetime.timestamp() does; an aware one is unchanged. Closes #4182 Co-authored-by: Fokko Driesprong <fokko@apache.org>
PyIceberg is a Python library for programmatic access to Iceberg table metadata as well as to table data in Iceberg format. It is a Python implementation of the Iceberg table spec.
The documentation is available at https://py.iceberg.apache.org/.