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

[chore](backup) Fix the db name of the restored view #38072

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

w41ter
Copy link
Contributor

@w41ter w41ter commented Jul 18, 2024

Cherry-pick #37412, #39855

Previously, during restore, the database name in the CREATE VIEW statement was not modified, causing the restored view to be unviewable with the SHOW VIEW command. This PR retains the original cluster's database name in the BackupMeta and manually replaces it with the new cluster's database name in the CREATE VIEW statement during restore.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@w41ter
Copy link
Contributor Author

w41ter commented Jul 18, 2024

run buildall

@w41ter
Copy link
Contributor Author

w41ter commented Jul 18, 2024

run buildall

@w41ter
Copy link
Contributor Author

w41ter commented Jul 23, 2024

convert to draft, because this PR requires updating FeMetaVersion.

@w41ter w41ter marked this pull request as draft July 23, 2024 06:23
Cherry-pick apache#37412, apache#39855

Previously, during restore, the database name in the CREATE VIEW
statement was not modified, causing the restored view to be unviewable
with the SHOW VIEW command. This PR retains the original cluster's
database name in the BackupMeta and manually replaces it with the new
cluster's database name in the CREATE VIEW statement during restore.
@w41ter
Copy link
Contributor Author

w41ter commented Aug 26, 2024

run buildall

@w41ter w41ter marked this pull request as ready for review August 26, 2024 02:53
@w41ter w41ter merged commit e21d2b8 into apache:branch-2.1 Aug 26, 2024
21 of 22 checks passed
@w41ter w41ter deleted the pick/37412_to_2.1 branch August 26, 2024 06:12
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
This pull request was closed.
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