harshilv17 opened a new pull request, #2816:
URL: https://github.com/apache/iceberg-go/pull/2816

   Fixes #2720.
   
   Adds an `iceberg remove-dangling-deletes` subcommand over 
`PlanDanglingDeleteFiles` / `RemoveDanglingDeleteFiles` (#2408), modeled on 
`clean-orphan-files`, so a full maintenance pass (compact, dangling deletes, 
expire, orphans) can run from the CLI.
   
   ```
   iceberg remove-dangling-deletes <table> [--branch BRANCH] [--dry-run] [--yes]
   ```
   
   - `--dry-run` lists the dangling delete files (path, content, and the 
referenced data file for deletion vectors) without committing.
   - Without `--dry-run`, text output shows the plan first and asks for 
confirmation, which `--yes` skips. JSON output prints only the final result, so 
one run produces one JSON document.
   - `--branch` defaults to `main`. A branch that doesn't exist is rejected, 
since a transaction on it would fork it from `main` on commit.
   - `RemoveDanglingDeleteFiles` plans again on the same transaction state. The 
command refuses to commit if it stages a different number of files than the 
plan it showed.
   
   Docs are added to `website/src/cli.md`. Tests cover dry run, removal, JSON 
and text output, confirmation, a missing branch, and a table with nothing to 
remove. `go test ./cmd/iceberg/` and `go vet ./cmd/...` pass.


-- 
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]

Reply via email to