Skip to content

Conversation

@chenzl25
Copy link
Collaborator

@chenzl25 chenzl25 commented Jun 17, 2025

This pull request enhances the functionality of the MemoryCatalog by adding support for updating tables, including handling metadata updates and snapshots. The changes primarily focus on implementing table update logic and modifying the namespace state to accommodate metadata location updates.

Enhancements to table update functionality:

  • Added support for update_table in MemoryCatalog: Implemented logic to update table metadata, handle snapshot additions, and manage snapshot references. The new implementation reads the current metadata, applies updates, generates new metadata, writes it to a new location, and updates the namespace state accordingly. (crates/catalog/memory/src/catalog.rs, crates/catalog/memory/src/catalog.rsL274-R343)

  • Introduced TableUpdate to MemoryCatalog: Updated imports to include TableUpdate, which is used to apply specific update operations during table updates. (crates/catalog/memory/src/catalog.rs, crates/catalog/memory/src/catalog.rsL29-R29)

Modifications to namespace state:

  • Added update_table_location method to NamespaceState: Implemented a method to update the metadata location of a table within the namespace state, ensuring the catalog reflects the latest table metadata. (crates/catalog/memory/src/namespace_state.rs, crates/catalog/memory/src/namespace_state.rsR298-R313)

@chenzl25 chenzl25 requested a review from Li0k June 17, 2025 07:49
@chenzl25 chenzl25 requested a review from xxhZs June 17, 2025 07:50
Copy link

@Li0k Li0k left a comment

Choose a reason for hiding this comment

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

LGTM

@chenzl25 chenzl25 merged commit 15a4686 into dev_rebase_main_20250325 Jun 17, 2025
17 of 21 checks passed
@chenzl25 chenzl25 deleted the dylan/support_update_table_for_memory_catalog branch June 17, 2025 08:39
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