tanishq-chugh commented on code in PR #6744:
URL: https://github.com/apache/hive/pull/6744#discussion_r4640621768


##########
ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/metastore/HiveMetaStoreAuthorizer.java:
##########
@@ -140,10 +140,9 @@ public final List<String> filterDatabases(String catName, 
List<String> list) thr
   @Override
   public final Database filterDatabase(Database database) throws 
MetaException, NoSuchObjectException {
     if (database != null) {
-      String dbName = database.getName();
-      List<String> databases = filterDatabases(database.getCatalogName(), 
Collections.singletonList(dbName));
+      List<Database> databases = 
filterDatabaseObjects(Collections.singletonList(database));
       if (databases.isEmpty()) {
-        throw new NoSuchObjectException(String.format("Database %s does not 
exist", dbName));
+        throw new NoSuchObjectException(String.format("Database %s does not 
exist", database.getName()));
       }
     }
     return database;

Review Comment:
   Addressed in 
[03a3c77](https://github.com/apache/hive/pull/6744/commits/03a3c7707b6e2575e107c7c053528cffecd54915)



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to