hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amareshw...@apache.org
Subject hive git commit: HIVE-13862 : Fix exception in direct SQL check for getNumPartitionsViaSqlFilter (Reviewed by Sergey Shelukhin)
Date Fri, 03 Jun 2016 04:45:37 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2.1 cc5db0dcd -> 600bde23b


HIVE-13862 : Fix exception in direct SQL check for getNumPartitionsViaSqlFilter (Reviewed
by Sergey Shelukhin)


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

Branch: refs/heads/branch-2.1
Commit: 600bde23b504a766012af192994454cfa48c8a1d
Parents: cc5db0d
Author: Rajat Khandelwal <prongs@apache.org>
Authored: Fri Jun 3 10:13:23 2016 +0530
Committer: Amareshwari Sriramadasu <amareshwari@apache.org>
Committed: Fri Jun 3 10:14:56 2016 +0530

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/600bde23/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
----------------------------------------------------------------------
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 8e0bba6..c135179 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
@@ -852,6 +852,7 @@ class MetaStoreDirectSql {
 
     long start = doTrace ? System.nanoTime() : 0;
     Query query = pm.newQuery("javax.jdo.query.SQL", queryText);
+    query.setUnique(true);
     int sqlResult = extractSqlInt(query.executeWithArray(params));
     long queryTime = doTrace ? System.nanoTime() : 0;
     timingTrace(doTrace, queryText, start, queryTime);


Mime
View raw message