Skip to content

feat(compaction): add Analyze for dry-run compaction planning#893

Merged
zeroshade merged 1 commit into
apache:mainfrom
laskoviymishka:feat/analyze-compaction
Apr 14, 2026
Merged

feat(compaction): add Analyze for dry-run compaction planning#893
zeroshade merged 1 commit into
apache:mainfrom
laskoviymishka:feat/analyze-compaction

Conversation

@laskoviymishka
Copy link
Copy Markdown
Contributor

Add compaction.Analyze(ctx, tbl, cfg) as a read-only entry point that scans the table via PlanFiles and produces a compaction Plan without modifying anything. Useful for dry-run analysis, CLI tooling, and deciding whether compaction is worthwhile before executing.

E2e tests with real Parquet files:

  • Small files detected as compaction candidates
  • Optimal files skipped when below MinInputFiles
  • Empty table produces empty plan
  • Invalid config returns error

Part of #832 (table compaction).

Add compaction.Analyze(ctx, tbl, cfg) as a read-only entry point that
scans the table via PlanFiles and produces a compaction Plan without
modifying anything. Useful for dry-run analysis, CLI tooling, and
deciding whether compaction is worthwhile before executing.

E2e tests with real Parquet files:
- Small files detected as compaction candidates
- Optimal files skipped when below MinInputFiles
- Empty table produces empty plan
- Invalid config returns error

Part of apache#832 (table compaction).
@laskoviymishka laskoviymishka marked this pull request as ready for review April 14, 2026 08:42
@zeroshade zeroshade merged commit df817dc into apache:main Apr 14, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants