jerqi commented on code in PR #6211: URL: https://github.com/apache/gravitino/pull/6211#discussion_r2016504009
########## core/src/main/java/org/apache/gravitino/authorization/AuthorizationUtils.java: ########## @@ -465,30 +471,72 @@ public static List<String> getMetadataObjectLocation( } break; case SCHEMA: - { - Catalog catalogObj = - GravitinoEnv.getInstance() - .catalogDispatcher() - .loadCatalog( - NameIdentifier.of(ident.namespace().level(0), ident.namespace().level(1))); - LOG.info("Catalog provider is %s", catalogObj.provider()); - if (catalogObj.provider().equals("hive")) { - Schema schema = GravitinoEnv.getInstance().schemaDispatcher().loadSchema(ident); - if (schema.properties().containsKey(HiveConstants.LOCATION)) { + Catalog catalogObj = + GravitinoEnv.getInstance() + .catalogDispatcher() + .loadCatalog( + NameIdentifier.of(ident.namespace().level(0), ident.namespace().level(1))); + Schema schema = GravitinoEnv.getInstance().schemaDispatcher().loadSchema(ident); + + switch (catalogObj.type()) { + case RELATIONAL: + LOG.info("Catalog provider is {}", catalogObj.provider()); Review Comment: Removed. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org