You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ga...@apache.org on 2019/05/06 18:43:38 UTC
[hive] branch branch-2.3 updated: HIVE-21680 Backport HIVE-17644 to
branch-2.3 (Yuming Wang via Alan Gates)
This is an automated email from the ASF dual-hosted git repository.
gates pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new e82d223 HIVE-21680 Backport HIVE-17644 to branch-2.3 (Yuming Wang via Alan Gates)
e82d223 is described below
commit e82d223907dee7c558c92eca95ddfefd9a6d0acf
Author: Alan Gates <ga...@hortonworks.com>
AuthorDate: Fri May 3 13:25:58 2019 -0700
HIVE-21680 Backport HIVE-17644 to branch-2.3 (Yuming Wang via Alan Gates)
---
.../java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
index 22c1a33..227ba15 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
@@ -173,7 +173,7 @@ class MetaStoreDirectSql {
tx.begin();
doCommit = true;
}
- Query dbQuery = null, tblColumnQuery = null, partColumnQuery = null;
+ Query dbQuery = null, tblColumnQuery = null, partColumnQuery = null, constraintQuery = null;
try {
// Force the underlying db to initialize.
@@ -186,6 +186,9 @@ class MetaStoreDirectSql {
partColumnQuery = pm.newQuery(MPartitionColumnStatistics.class, "dbName == ''");
partColumnQuery.execute();
+ constraintQuery = pm.newQuery(MConstraint.class, "childIntegerIndex < 0");
+ constraintQuery.execute();
+
return true;
} catch (Exception ex) {
doCommit = false;
@@ -205,6 +208,9 @@ class MetaStoreDirectSql {
if (partColumnQuery != null) {
partColumnQuery.closeAll();
}
+ if (constraintQuery != null) {
+ constraintQuery.cancelAll();
+ }
}
}