ForeverAngry opened a new issue, #2150: URL: https://github.com/apache/iceberg-python/issues/2150
### Feature Request / Improvement ## Overview The Apache Iceberg Java API provides more robust and flexible retention options for expiring Snapshots, including: - `retainLast(n)` – Retain the most recent `n` snapshots. - `setMinSnapshotsToKeep(n)` – Ensure a minimum number of snapshots are always retained. ## Description Adding support for non-time-based retention strategies provides better control over snapshot pruning. This ensures operational resilience while still allowing space reclamation. For example: - `retainLast(n)` is helpful when regular snapshot creation occurs and users always want to keep the last few for rollback. - `setMinSnapshotsToKeep(n)` acts as a guardrail to prevent aggressive expiration logic from removing too many snapshots. -- 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.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