Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simplify/cleanup catalog API #26145

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hiltontj
Copy link
Contributor

@hiltontj hiltontj commented Mar 15, 2025

  • Changes the pub catalog update APIs to return Result<OrderedCatalogBatch, CatalogError> instead of Result<Option<OrderedCatalogBatch>, CatalogError>, as the Option was no longer used.
  • Removes the Catalog::db_or_create method as it was only used in one place and the logic therein was moved to that place: Catalog::create_database.

@hiltontj hiltontj added the v3 label Mar 15, 2025
@hiltontj hiltontj requested a review from a team March 15, 2025 01:19
@hiltontj hiltontj self-assigned this Mar 15, 2025
The db_or_create method, which used to be a public external API was
removed in this commit and its body moved to the create_database method
in the update.rs module, which was the only place using it.
@hiltontj hiltontj removed the request for review from a team March 15, 2025 01:33
@hiltontj hiltontj marked this pull request as draft March 15, 2025 01:33
@hiltontj hiltontj changed the title refactor: simplify API for catalog update refactor: simplify/cleanup catalog API Mar 15, 2025
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.

1 participant