Skip to content

[core] Read the table branch schemas when rewriting file indexes - #9468

Merged
JingsongLi merged 1 commit into
apache:masterfrom
plusplusjiajia:gh-file-index-branch-schema
Aug 30, 2026
Merged

[core] Read the table branch schemas when rewriting file indexes#9468
JingsongLi merged 1 commit into
apache:masterfrom
plusplusjiajia:gh-file-index-branch-schema

Conversation

@plusplusjiajia

Copy link
Copy Markdown
Member

Purpose

FileIndexProcessor looks up the schema of every file it rewrites through a SchemaManager pinned to the main branch, while the manifest entries it processes come from the table it was given. Running rewrite_file_index on a branch therefore resolves the branch's schema ids under main: it reads a different schema when both branches happen to have that id, and fails with FileNotFoundException: .../schema/schema-N when main never had it.

Tests

FileIndexProcessorTest: a branch whose schema id exists only on the branch is processed successfully; without the change the lookup throws.

@plusplusjiajia
plusplusjiajia marked this pull request as ready for review August 29, 2026 16:38
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 9c39e0d into apache:master Aug 30, 2026
25 of 26 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