drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From par...@apache.org
Subject [02/10] drill git commit: DRILL-1839: Clean up complex writers per batch if project has a ComplexWriter function evaluation
Date Fri, 12 Dec 2014 16:24:08 GMT
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/e536d6b4
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/e536d6b4
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/e536d6b4

Branch: refs/heads/master
Commit: e536d6b4edcdf933bc6e539e97adebc451bbc922
Parents: a0b16ce
Author: Hanifi Gunes <hgunes@maprtech.com>
Authored: Wed Dec 10 21:10:25 2014 -0800
Committer: Parth Chandra <pchandra@maprtech.com>
Committed: Thu Dec 11 11:49:08 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/e536d6b4/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<Project>
{
         // 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.


Mime
View raw message