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

[PIP-22] Introduce repair metastore procedure #3355

Closed

Conversation

zhuangchong
Copy link
Contributor

Purpose

Introduce repair metastore procedure

Tests

HiveCatalogITCaseBase#testRepairTable

API and Format

Documentation

throw new UnsupportedOperationException();
}

default void repairTable(Identifier identifier) throws TableNotExistException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add some comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Querying the paimon table by identifier in the file system may not exist. TableNotExistException is the exception thrown on the getDataTable method.

@JingsongLi
Copy link
Contributor

Thanks @zhuangchong , left some comments.

@zhuangchong
Copy link
Contributor Author

Thanks. @JingsongLi
I have modified the comment, please help with code review.

@zhuangchong zhuangchong requested a review from JingsongLi May 21, 2024 12:09
@zhuangchong
Copy link
Contributor Author

@JingsongLi

I added a new test HiveCatalogITCaseBase#testRepairTableWithCustomLocation,

  1. If the database in hive already exists and a custom location is used, use the custom location lookup table in the file system;

  2. If the table already exists and a custom location is used, updating the Hive table will not change the location;

@zhuangchong zhuangchong requested a review from JingsongLi May 24, 2024 01:10
JingsongLi pushed a commit to JingsongLi/paimon that referenced this pull request May 24, 2024
@JingsongLi
Copy link
Contributor

+1

@zhuangchong zhuangchong deleted the introduce-repair-metastore branch May 24, 2024 09:19
sunxiaojian pushed a commit to sunxiaojian/paimon that referenced this pull request May 28, 2024
joyCurry30 pushed a commit to joyCurry30/paimon that referenced this pull request May 30, 2024
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.

2 participants