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 DCD96F854 for ; Fri, 12 Dec 2014 16:24:07 +0000 (UTC) Received: (qmail 11657 invoked by uid 500); 12 Dec 2014 16:24:07 -0000 Delivered-To: apmail-drill-commits-archive@drill.apache.org Received: (qmail 11597 invoked by uid 500); 12 Dec 2014 16:24:07 -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 11474 invoked by uid 99); 12 Dec 2014 16:24:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2014 16:24:07 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 7A7B9A29CBC; Fri, 12 Dec 2014 16:24:07 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: parthc@apache.org To: commits@drill.apache.org Date: Fri, 12 Dec 2014 16:24:11 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/10] drill git commit: DRILL-1839: Clean up complex writers per batch if project has a ComplexWriter function evaluation DRILL-1839: Clean up complex writers per batch if project has a ComplexWriter function evaluation Project: http://git-wip-us.apache.org/repos/asf/drill/repo Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/9f74331e Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/9f74331e Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/9f74331e Branch: refs/heads/0.7.0 Commit: 9f74331e36552f76723e9adda5ebcbcd8ebc056d Parents: b8963fa Author: Hanifi Gunes Authored: Wed Dec 10 21:10:25 2014 -0800 Committer: Parth Chandra Committed: Thu Dec 11 13:29:42 2014 -0800 ---------------------------------------------------------------------- .../drill/exec/physical/impl/project/ProjectRecordBatch.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/drill/blob/9f74331e/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java b/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java index 387c2f2..9f88d85 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java @@ -409,6 +409,8 @@ public class ProjectRecordBatch extends AbstractSingleRecordBatch { // Lazy initialization of the list of complex writers, if not done yet. if (complexWriters == null) { complexWriters = Lists.newArrayList(); + } else { + complexWriters.clear(); } // The reference name will be passed to ComplexWriter, used as the name of the output vector from the writer.