-
Notifications
You must be signed in to change notification settings - Fork 415
Open
Description
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
RemoveSnapshotstable 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.
Willingness to contribute
I am willing to submit a PR for this feature.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels