You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jd...@apache.org on 2015/05/11 23:30:12 UTC
hive git commit: HIVE-10606: Divide by zero error in
HybridHashTableContainer (Jason Dere, reviewed by Alex Pivovarov)
Repository: hive
Updated Branches:
refs/heads/master 9e4803cd3 -> 1c6f34563
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/1c6f3456
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/1c6f3456
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/1c6f3456
Branch: refs/heads/master
Commit: 1c6f345631203c2b7fe185e1dfcbdb94bebbcf26
Parents: 9e4803c
Author: Jason Dere <jd...@hortonworks.com>
Authored: Mon May 11 14:29:27 2015 -0700
Committer: Jason Dere <jd...@hortonworks.com>
Committed: Mon May 11 14:29:27 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/1c6f3456/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;