Skip to content

perf: skip manifests with no live entries - #3708

Merged
CTTY merged 1 commit into
apache:mainfrom
DerGut:scan-skip-dead-manifests
Nov 17, 2026
Merged

CTTY merged 1 commit into
apache:mainfrom
DerGut:scan-skip-dead-manifests

Conversation

@DerGut

@DerGut DerGut commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Avoid opening manifests whose list counts prove there are no added or existing files. Cover normal and copy-on-write planning with a removed dead-only manifest.

Which issue does this PR close?

While working on #1466 I noticed a mismatch between Java-reported scan metrics and Rust-reported ones. This PR aligns the Rust planner behavior with Java by saving some IO.

What changes are included in this PR?

A scan is now skipping delete manifest reads (as Java does) if they don't apply to any live files.

manifest.hasAddedFiles() || manifest.hasExistingFiles()

Are these changes tested?

Yes, scan reports are matching.

AI Disclosure

AI found this and I used AI to generate the fix.

Avoid opening manifests whose list counts prove there are no added or existing files. Cover normal and copy-on-write planning with a removed dead-only manifest.
@DerGut
DerGut marked this pull request as ready for review November 17, 2026 17:26

@CTTY CTTY left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@CTTY
CTTY added this pull request to the merge queue Nov 17, 2026
Merged via the queue into apache:main with commit 14e0919 Nov 17, 2026
27 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