Skip to content

fix(catalog): load schemas from the requested branch - #429

Merged
lxy-9602 merged 1 commit into
apache:mainfrom
mrdrivingduck:mrdrivingduck/fix-filesystem-branch-schema
Oct 15, 2026
Merged

lxy-9602 merged 1 commit into
apache:mainfrom
mrdrivingduck:mrdrivingduck/fix-filesystem-branch-schema

Conversation

@mrdrivingduck

Copy link
Copy Markdown
Contributor

Purpose

I noticed this by chance: FileSystemCatalog and Table::Create can load the main schema for a branch-qualified identifier. I am unsure whether this is intentional or a historical limitation.

This change preserves branch selection for normal and system tables and prevents missing branches from falling back to main.

Tests

Added regression coverage for branch schemas, system tables, main aliases, and missing/invalid branches. Both new tests and changed-file pre-commit checks passed.

API and Format

No API signature or storage format changes.

Documentation

Updated the branch-selection documentation for Table::Create.

Generative AI tooling

Generated-by: OpenAI Codex (GPT-6.1 Sol)

Preserve branch selection when loading table metadata so normal and
system tables use the schema of the requested branch. Apply the same
selection when opening tables directly, including default-branch
aliases.

Reject missing branches instead of falling back to the main schema.
@mrdrivingduck
mrdrivingduck force-pushed the mrdrivingduck/fix-filesystem-branch-schema branch from f1c8ceb to 948ed62 Compare October 13, 2026 03:17
@lucasfang

Copy link
Copy Markdown
Collaborator

LGTM

@lxy-9602 lxy-9602 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@lxy-9602
lxy-9602 merged commit ff4194e into apache:main Oct 15, 2026
16 checks passed
@mrdrivingduck
mrdrivingduck deleted the mrdrivingduck/fix-filesystem-branch-schema branch October 15, 2026 02:04
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.

3 participants