Skip to content

refactor(catalog-loader): rename CatalogBuilderFactory to BoxedCatalogBuilderFactory - #3407

Merged
blackmwk merged 1 commit into
apache:mainfrom
NoahKusaba:refactor/boxed-catalog-builder-factory
Nov 13, 2026
Merged

blackmwk merged 1 commit into
apache:mainfrom
NoahKusaba:refactor/boxed-catalog-builder-factory

Conversation

@NoahKusaba

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

What changes are included in this PR?

Renames the loader's private type alias CatalogBuilderFactory to BoxedCatalogBuilderFactory. The factories in CATALOG_REGISTRY return a Box<dyn BoxedCatalogBuilder>, not a CatalogBuilder, so the alias is now named after the trait it produces.

The doc comments on the alias and on CATALOG_REGISTRY are updated to match: the old alias doc repeated its own name, and the registry holds builder factories, not builders.

The alias is private, so there is no public API change, and public-api.txt is unchanged.

Are these changes tested?

No behaviour changes, so no new tests. cargo fmt --all -- --check, cargo clippy -p iceberg-catalog-loader --all-targets --all-features -- -D warnings, cargo test -p iceberg-catalog-loader --lib and cargo public-api -p iceberg-catalog-loader (compared against public-api.txt) pass locally.

AI Disclosure

  • Used Claude Code to make the rename and draft this description. I reviewed the change.

…gBuilderFactory

The factories in the registry return a Box<dyn BoxedCatalogBuilder>, not a
CatalogBuilder, so name the alias after the trait it produces. Suggested in
review of apache#3286.
@blackmwk
blackmwk added this pull request to the merge queue Oct 12, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 12, 2026
@NoahKusaba

Copy link
Copy Markdown
Contributor Author

Seems to bit a github issue, the checks eventually passed 🤷‍♂️

@blackmwk
blackmwk added this pull request to the merge queue Oct 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Nov 12, 2026
@blackmwk
blackmwk added this pull request to the merge queue Nov 13, 2026
Merged via the queue into apache:main with commit fa961f5 Nov 13, 2026
25 checks passed
@NoahKusaba
NoahKusaba deleted the refactor/boxed-catalog-builder-factory branch November 22, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants