You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ExpireSnapshotsAction for snapshot lifecycle management #2145
Is your feature request related to a problem or challenge?
There is currently no way to remove old snapshots from table metadata via the transaction API. Over time, tables accumulate snapshots which increases metadata size and makes operations slower. Issue #1454 was filed for this but closed without an implementation landing.
Describe the solution you'd like
Add an ExpireSnapshotsAction that:
Removes specified snapshots from table metadata (by ID or by age cutoff)
Respects a minimum retention count (always keeps at least N most recent snapshots)
Never expires the current snapshot
Returns RemoveSnapshots table update (does NOT delete physical files)
Also add a find_unreferenced_files() utility that identifies data files, manifests, and manifest lists that are only referenced by expired snapshots and can be safely deleted.
Activity
dhruvarya-db commentedon May 29, 2026
Hi @drbothen , I saw your closed PR for this. Do you still plan to get it merged or is it okay if I pick this up?
feat(transaction): default expiry to history.expire.* table properties
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-ref age windows and ref aging
feat(transaction): per-branch retention, ref aging, and review fixes
feat(transaction): add ExpireSnapshotsAction (apache#2591)
feat(transaction): default expiry to history.expire.* table properties
feat(transaction): default expiry to history.expire.* table properties
feat(transaction): default expiry to history.expire.* table properties (
feat(transaction): remove statistics file metadata for expired snapsh…
feat(maintenance): add iceberg-maintenance crate with unreferenced_fi…