You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by rb...@apache.org on 2022/01/03 07:19:42 UTC
[hive] branch master updated: HIVE-25830: Hive::loadPartitionInternal establishes connection often (#2904)
This is an automated email from the ASF dual-hosted git repository.
rbalamohan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 85d3e34 HIVE-25830: Hive::loadPartitionInternal establishes connection often (#2904)
85d3e34 is described below
commit 85d3e341c176018bf812ad136aa1e32583231f57
Author: rbalamohan <rb...@apache.org>
AuthorDate: Mon Jan 3 12:49:16 2022 +0530
HIVE-25830: Hive::loadPartitionInternal establishes connection often (#2904)
---
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
index 691d63e..96c60fe 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
@@ -2612,7 +2612,7 @@ public class Hive {
// base_x. (there is Insert Overwrite and Load Data Overwrite)
boolean isSkipTrash = MetaStoreUtils.isSkipTrash(tbl.getParameters());
boolean needRecycle = !tbl.isTemporary()
- && ReplChangeManager.shouldEnableCm(Hive.get().getDatabase(tbl.getDbName()), tbl.getTTable());
+ && ReplChangeManager.shouldEnableCm(getDatabase(tbl.getDbName()), tbl.getTTable());
replaceFiles(tbl.getPath(), loadPath, destPath, oldPartPath, getConf(), isSrcLocal,
isSkipTrash, newFiles, FileUtils.HIDDEN_FILES_PATH_FILTER, needRecycle, isManaged, isInsertOverwrite);
} else {