jerryshao opened a new issue, #13310: URL: https://github.com/apache/gravitino/issues/13310
### Describe the subtask `TableHookDispatcher.alterTable` calls `AuthorizationUtils.authorizationPluginRenamePrivileges(ident, TABLE, newName, locations)`. That method builds the renamed object as `NameIdentifier.of(ident.namespace(), newName)`. When `TableChange.RenameTable` sets a new schema, the plugins therefore receive a rename to `<old schema>.<new name>`, which doesn't exist. Privileges in external systems (e.g. Ranger) end up on the wrong object. Proposed fix: build the new identifier from `RenameTable.getNewSchemaName()` when it is set, and add a unit test. Target: `main`, backport to `branch-1.3`. ### Parent issue #13303 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
