drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meh...@apache.org
Subject [2/2] drill git commit: DRILL-2580: Exit early from HashJoinBatch if build side is empty
Date Thu, 26 Mar 2015 20:15:46 GMT
DRILL-2580: Exit early from HashJoinBatch if build side is empty


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

Branch: refs/heads/master
Commit: 9d92b8e319f2d46e8659d903d355450e15946533
Parents: 0d118a6
Author: Mehant Baid <mehantr@gmail.com>
Authored: Wed Mar 25 18:56:18 2015 -0700
Committer: Mehant Baid <mehantr@gmail.com>
Committed: Thu Mar 26 13:13:53 2015 -0700

----------------------------------------------------------------------
 .../org/apache/drill/exec/physical/impl/join/HashJoinBatch.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/9d92b8e3/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/HashJoinBatch.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/HashJoinBatch.java
b/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/HashJoinBatch.java
index 43d46af..bbd83c0 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/HashJoinBatch.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/HashJoinBatch.java
@@ -215,7 +215,7 @@ public class HashJoinBatch extends AbstractRecordBatch<HashJoinPOP>
{
       }
 
       // Store the number of records projected
-      if (hashTable != null || joinType != JoinRelType.INNER) {
+      if (!hashTable.isEmpty() || joinType != JoinRelType.INNER) {
 
         // Allocate the memory for the vectors in the output container
         allocateVectors();


Mime
View raw message