-
Notifications
You must be signed in to change notification settings - Fork 383
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
[#5947] fix(auth): It will throw error if we enable authorization and rename catalog #5949
Conversation
…on and rename catalog
@@ -298,9 +298,19 @@ public static void authorizationPluginRenamePrivileges( | |||
NameIdentifierUtil.toMetadataObject(NameIdentifier.of(ident.namespace(), newName), type); | |||
MetadataObjectChange renameObject = | |||
MetadataObjectChange.rename(oldMetadataObject, newMetadataObject); | |||
|
|||
String metalake; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can change to use ? :
operand to simplify your code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…on and rename catalog (apache#5949) Fix the issue of renaming catalogs or metalakes. Fix: apache#5947 No. Add UT.
…on and rename catalog (apache#5949) Fix the issue of renaming catalogs or metalakes. Fix: apache#5947 No. Add UT.
…on and rename catalog (apache#5949) ### What changes were proposed in this pull request? Fix the issue of renaming catalogs or metalakes. ### Why are the changes needed? Fix: apache#5947 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Add UT.
…on and rename catalog (apache#5949) ### What changes were proposed in this pull request? Fix the issue of renaming catalogs or metalakes. ### Why are the changes needed? Fix: apache#5947 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Add UT.
What changes were proposed in this pull request?
Fix the issue of renaming catalogs or metalakes.
Why are the changes needed?
Fix: #5947
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add UT.