feat(cli): add compact analyze and compact run commands#903
Merged
Conversation
Add `iceberg compact analyze TABLE_ID` for dry-run compaction planning and `iceberg compact run TABLE_ID` for executing bin-pack compaction. - Plans via compaction.Analyze, executes via Transaction.RewriteDataFiles - Flags: --target-file-size, --partial-progress - Prints per-group breakdown table with partition, file count, size, deletes - Partial progress message printed before fatal error on failure Part of apache#832 (table compaction).
1cf7b38 to
59adc15
Compare
Print the compaction plan summary and per-group table regardless of whether the user ran 'analyze' or 'run'. This gives users visibility into what will be compacted before it actually happens.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
iceberg compact analyze TABLE_IDfor dry-run compaction planning andiceberg compact run TABLE_IDfor executing bin-pack compaction.Part of #832 (table compaction).