You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vg...@apache.org on 2018/05/14 22:18:50 UTC

hive git commit: HIVE-19497: SessionHiveMetaStoreClient.getTable should respect default catalog (Dongjoon Hyun, reviewed by Alan Gates)

Repository: hive
Updated Branches:
  refs/heads/master d65d2334f -> 52be32b00


HIVE-19497: SessionHiveMetaStoreClient.getTable should respect default catalog (Dongjoon Hyun, reviewed by Alan Gates)


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

Branch: refs/heads/master
Commit: 52be32b004ed488e702bb358a44f9a1d0f147f95
Parents: d65d233
Author: Dongjoon Hyun <do...@apache.org>
Authored: Mon May 14 15:17:15 2018 -0700
Committer: Vineet Garg <vg...@apache.org>
Committed: Mon May 14 15:18:39 2018 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/52be32b0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
index 071756d..0d2ed54 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
@@ -166,7 +166,7 @@ public class SessionHiveMetaStoreClient extends HiveMetaStoreClient implements I
       return deepCopy(table);  // Original method used deepCopy(), do the same here.
     }
     // Try underlying client
-    return super.getTable(DEFAULT_CATALOG_NAME, dbname, name);
+    return super.getTable(MetaStoreUtils.getDefaultCatalog(conf), dbname, name);
   }
 
   // Need to override this one too or dropTable breaks because it doesn't find the table when checks