deniskuzZ commented on code in PR #6088:
URL: https://github.com/apache/hive/pull/6088#discussion_r2454681994


##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -1997,6 +2035,52 @@ public List<String> getTablesByType(String dbName, 
String pattern, TableType typ
     }
   }
 
+  /**
+   * Returns all existing tables of a type 
(VIRTUAL_VIEW|EXTERNAL_TABLE|MANAGED_TABLE) from the specified
+   * database which match the given pattern. The matching occurs as per Java 
regular expressions.
+   * @param catName catalog name to find the tables in. if null, uses the 
current catalog in this session.
+   * @param dbName Database name to find the tables in. if null, uses the 
current database in this session.
+   * @param pattern A pattern to match for the table names.If null, returns 
all names from this DB.
+   * @param type The type of tables to return. VIRTUAL_VIEWS for views. If 
null, returns all tables and views.
+   * @return list of table names that match the pattern.
+   * @throws HiveException
+   */
+  public List<String> getTablesByType(String catName, String dbName, String 
pattern, TableType type)

Review Comment:
   same as https://github.com/apache/hive/pull/6088/files#r2454680968



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