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/15 22:41:02 UTC
[42/50] [abbrv] hive git commit: HIVE-19497:
SessionHiveMetaStoreClient.getTable should respect default catalog (Dongjoon
Hyun, reviewed by Alan Gates)
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/c740e32f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/c740e32f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/c740e32f
Branch: refs/heads/branch-3.0.0
Commit: c740e32fcf46f7eba5200419baa68f624cfa3abe
Parents: 3e04cc1
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:19:05 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/c740e32f/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