You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2018/09/21 06:36:00 UTC

hive git commit: HIVE-20568 : There is no need to convert the dbname to pattern while pulling tablemeta (Rajkumar Singh via Thejas Nair)

Repository: hive
Updated Branches:
  refs/heads/master 3635c4dba -> bd453b8e1


HIVE-20568 : There is no need to convert the dbname to pattern while pulling tablemeta (Rajkumar Singh via Thejas Nair)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/bd453b8e
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/bd453b8e
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/bd453b8e

Branch: refs/heads/master
Commit: bd453b8e1d2e2b81bb55779ca60231ea2cfaa80d
Parents: 3635c4d
Author: Rajkumar Singh <ra...@hortonworks.com>
Authored: Thu Sep 20 23:35:53 2018 -0700
Committer: Thejas M Nair <th...@hortonworks.com>
Committed: Thu Sep 20 23:35:53 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hive/service/cli/operation/GetTablesOperation.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/bd453b8e/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java b/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java
index aaee2ce..5ccdc94 100644
--- a/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java
+++ b/service/src/java/org/apache/hive/service/cli/operation/GetTablesOperation.java
@@ -114,9 +114,8 @@ public class GetTablesOperation extends MetadataOperation {
 
       String tablePattern = convertIdentifierPattern(tableName, true);
       for (String dbName : metastoreClient.getDatabases(schemaPattern)) {
-        String dbNamePattern = convertIdentifierPattern(dbName, true);
         for (TableMeta tableMeta :
-                metastoreClient.getTableMeta(dbNamePattern, tablePattern, tableTypeList)) {
+                metastoreClient.getTableMeta(dbName, tablePattern, tableTypeList)) {
           String tableType = tableTypeMapping.mapToClientType(tableMeta.getTableType());
           rowSet.addRow(new Object[]{
                   DEFAULT_HIVE_CATALOG,