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

feat(catalog): Standardize Catalog create table function #245

Merged
merged 7 commits into from
Jan 15, 2025

Conversation

zeroshade
Copy link
Member

Adding a CreateTable function to the Catalog interface, standardizing the implementation that was initially created by #146 so that it isn't specific to the REST catalog and can be implemented by any catalog.

This also requires adding the AssignFresh*IDs functions so that the REST catalog implementation is correctly re-assigning IDs as other implementations do.

@zeroshade zeroshade force-pushed the catalog-create-table branch from 984351a to b384c0f Compare January 10, 2025 20:21
Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

generally LGTM, have a few nit comments

catalog/catalog.go Outdated Show resolved Hide resolved
catalog/rest.go Show resolved Hide resolved
catalog/catalog.go Show resolved Hide resolved
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
@zeroshade
Copy link
Member Author

@Fokko any further comments?

return &metadataV1{
commonMetadata: common,
Schema: freshSchema,
Partition: slices.Collect(freshPartitions.Fields()),
Copy link
Contributor

Choose a reason for hiding this comment

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

In PyIceberg we decided to upgrade everything to V2 internally, and do the V1-specific things when serializing/deserializing. This is not a blocker for this PR.

@Fokko Fokko merged commit 85238d2 into apache:main Jan 15, 2025
10 checks passed
@Fokko
Copy link
Contributor

Fokko commented Jan 15, 2025

Thanks @zeroshade 🙌

@zeroshade zeroshade deleted the catalog-create-table branch January 15, 2025 15:56
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