shuyouZZ commented on code in PR #5852:
URL: https://github.com/apache/hive/pull/5852#discussion_r2140399097
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java:
##########
@@ -1002,8 +1002,37 @@ public boolean dropDatabase(String catName, String
dbname)
@Override
public List<String> getDatabases(String catName, String pattern) throws
MetaException {
+ catName = normalizeIdentifier(catName);
+ try {
+ return getDatabasesInternal(catName, pattern);
+ } catch (NoSuchObjectException e) {
+ throw new MetaException(ExceptionUtils.getStackTrace(e));
+ }
+ }
+
+ private List<String> getDatabasesInternal(String catName, String pattern)
+ throws MetaException, NoSuchObjectException {
+ return new GetHelper<List<String>>(catName, null, pattern, true, true) {
+ @Override
+ protected String describeResult() {
+ return "List of databases matching pattern";
+ }
+
+ @Override
+ protected List<String> getSqlResult(GetHelper<List<String>> ctx) throws
MetaException {
+ return directSql.getDatabases(catName, pattern);
+ }
+
+ @Override
+ protected List<String> getJdoResult(GetHelper<List<String>> ctx) throws
MetaException {
+ return getGetDatabasesViaJdo(catName, pattern);
Review Comment:
> getGetDatabasesViaJdo has redundant get in the method name which can be
removed
thanks, have fix it.
--
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]