hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jd...@apache.org
Subject hive git commit: HIVE-10606: Divide by zero error in HybridHashTableContainer (Jason Dere, reviewed by Alex Pivovarov)
Date Mon, 18 May 2015 18:17:02 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1.2 275e0c478 -> c621980ea


HIVE-10606: Divide by zero error in HybridHashTableContainer (Jason Dere, reviewed by Alex
Pivovarov)


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

Branch: refs/heads/branch-1.2
Commit: c621980eacb3a174de44e8f777e4c58b9dc5d314
Parents: 275e0c4
Author: Jason Dere <jdere@hortonworks.com>
Authored: Mon May 11 14:29:27 2015 -0700
Committer: Jason Dere <jdere@hortonworks.com>
Committed: Mon May 18 11:10:34 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/c621980e/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java
b/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java
index 412226e..f80ffc5 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java
@@ -238,7 +238,7 @@ public class HybridHashTableContainer
         keyCountAdj, threshold, loadFactor, keyCount);
 
     memoryThreshold = memoryAvailable;
-    tableRowSize = estimatedTableSize / keyCount;
+    tableRowSize = estimatedTableSize / (keyCount != 0 ? keyCount : 1);
     memoryCheckFrequency = memCheckFreq;
 
     this.nwayConf = nwayConf;


Mime
View raw message