tanmayrauth commented on issue #957: URL: https://github.com/apache/iceberg-go/issues/957#issuecomment-4445760571
All 11 commands and shared infrastructure from the original design are now
shipped:
- **Shared infra**: duration parser, `--yes` confirmation, dry-run
contract, `--output json|text` ✓
- **Read-only**: `info`, `snapshots`, `refs`, `partition-stats`, `schema
--show-defaults` ✓ (#1065, #1067, #1072)
- **Snapshot maintenance**: `expire-snapshots`, `clean-orphan-files` ✓
(#1063, #1066)
- **Rollback**: `rollback --snapshot-id` ✓ (#1071)
- **Format upgrade**: `upgrade` ✓ (#1071)
- **Ref management**: `branch create`, `tag create` ✓ (#1068)
---
### Deferred items (candidates for follow-up issues)
1. **`branch delete` / `tag delete`** — The table-layer API already exists
(`MetadataBuilder.RemoveSnapshotRef`), so this is mostly CLI wiring +
confirmation UX. Low complexity.
2. **`rollback --timestamp` / `rollback --branch`** — Currently rollback
requires an explicit `--snapshot-id`. `--timestamp` would find the latest
snapshot ≤ a given time (linear scan over `snapshot.TimestampMs`). `--branch`
would roll back to the snapshot pointed to by a named branch ref. Both are
sugar over the
existing `RollbackToSnapshot` transaction.
3. **`expire-snapshots --dry-run` file-level impact** — Today dry-run
reports *which snapshots* would be expired. A deeper mode would diff the
manifest lists to report which data/delete files become unreferenced (i.e.,
deletable). This requires reading manifests from both the current and
post-expire state —
heavier I/O, but useful for estimating space reclaimed.
4. **`snapshots --limit N`** — Paginate snapshot output to the most recent
N snapshots. Straightforward flag addition; the snapshot list is already sorted
by timestamp in metadata.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
