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

Core: Fix loading a table in CachingCatalog with metadata table name #11738

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaborkaszab
Copy link
Collaborator

If a regular table had a metadata table name then CachingCatalog throws a NoSuchTableException when loading that table.

@github-actions github-actions bot added the core label Dec 10, 2024
@gaborkaszab
Copy link
Collaborator Author

This is an alternative solution to #11123

If a regular table had a metadata table name then CachingCatalog throws a
NoSuchTableException when loading that table.

Co-authored-by: Manu Zhang <[email protected]>
@gaborkaszab gaborkaszab force-pushed the main_caching_catalog_fix branch from efe4626 to 34d69e6 Compare December 10, 2024 12:54
// share TableOperations instance of origin table for all metadata tables, so that metadata
// table instances are
// also refreshed as well when origin table instance is refreshed.
// Share TableOperations instance of origin table for all metadata tables, so that metadata
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need code below when we already cache the metadata table above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's needed to share the underlying TableOperations between the originTable and the metadata table. We basically create another Table object for the table metadata with a different TableOperations and then update the cache with that object.

@gaborkaszab
Copy link
Collaborator Author

I see you have made changes previously in CachingCatalog, @rdblue @aokolnychyi @RussellSpitzer . Would you mind taking a look at this PR?

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