geyanggang commented on code in PR #13481:
URL: https://github.com/apache/gravitino/pull/13481#discussion_r4119819971


##########
core/src/main/java/org/apache/gravitino/catalog/TableNormalizeDispatcher.java:
##########
@@ -62,7 +66,7 @@ public NameIdentifier[] listTables(Namespace namespace) 
throws NoSuchSchemaExcep
   public Table loadTable(NameIdentifier ident) throws NoSuchTableException {
     // The constraints of the name spec may be more strict than underlying 
catalog,
     // and for compatibility reasons, we only apply case-sensitive 
capabilities here.
-    return dispatcher.loadTable(normalizeCaseSensitive(ident));
+    return dispatcher.loadTable(resolvePhysicalName(ident, 
normalizeCaseSensitive(ident)));

Review Comment:
   Fixed. Both paths now go through CapabilityHelpers.resolvePhysicalTableName; 
MetadataIdConverter resolves the physical name for TABLE scope, so 
authorization and the dispatcher use the same identifier. New consistency test 
added.



-- 
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]

Reply via email to