drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From par...@apache.org
Subject [05/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:11 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/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 <hgunes@maprtech.com>
Authored: Wed Dec 10 21:10:25 2014 -0800
Committer: Parth Chandra <pchandra@maprtech.com>
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<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