Return-Path: X-Original-To: apmail-drill-commits-archive@www.apache.org Delivered-To: apmail-drill-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08F6F17832 for ; Thu, 26 Mar 2015 20:15:46 +0000 (UTC) Received: (qmail 87889 invoked by uid 500); 26 Mar 2015 20:15:46 -0000 Delivered-To: apmail-drill-commits-archive@drill.apache.org Received: (qmail 87852 invoked by uid 500); 26 Mar 2015 20:15:45 -0000 Mailing-List: contact commits-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@drill.apache.org Delivered-To: mailing list commits@drill.apache.org Received: (qmail 87802 invoked by uid 99); 26 Mar 2015 20:15:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 20:15:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BF435E2F1E; Thu, 26 Mar 2015 20:15:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mehant@apache.org To: commits@drill.apache.org Date: Thu, 26 Mar 2015 20:15:46 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] drill git commit: DRILL-2580: Exit early from HashJoinBatch if build side is empty 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 Authored: Wed Mar 25 18:56:18 2015 -0700 Committer: Mehant Baid 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 { } // 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();