saihemanth-cloudera commented on code in PR #5275:
URL: https://github.com/apache/hive/pull/5275#discussion_r1722262736


##########
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java:
##########
@@ -4727,6 +4727,16 @@ public List<String> getFunctions(String catName, String 
dbName, String pattern)
     return client.get_functions(prependCatalogToDbName(catName, dbName, conf), 
pattern);
   }
 
+  @Override
+  public List<Function> getFunctionsInDb(String dbName, String pattern) throws 
TException {
+    GetFunctionsRequest request = new GetFunctionsRequest(dbName);
+    request.setCatalogName(getDefaultCatalog(conf));
+    request.setPattern(pattern);
+    request.setReturnNames(false);
+    return client.get_functions_in_db(request).getFunctions();
+//    return 
client.get_functions_in_db(prependCatalogToDbName(getDefaultCatalog(conf), 
dbName, conf), pattern);

Review Comment:
   ack



##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java:
##########
@@ -1623,6 +1623,15 @@ void dropFunction(String catName, String dbName, String 
funcName)
    */
   List<String> getFunctions(String catName, String dbName, String pattern) 
throws MetaException;
 
+  /**
+   * Retrieve list of function names based on name pattern.
+   * @param dbName database name
+   * @param pattern pattern to match
+   * @return functions that match the pattern
+   * @throws MetaException incorrectly specified function
+   */
+  List<Function> getFunctionsInDb(String catName, String dbName, String 
pattern) throws MetaException;

Review Comment:
   ack



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to