You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2014/08/07 05:56:07 UTC

[16/20] git commit: DRILL-1239: stop writing to vector if the vector runs out of memory

DRILL-1239: stop writing to vector if the vector runs out of memory


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

Branch: refs/heads/master
Commit: c6904f91a2a7a4909def300594399688840ea545
Parents: 711d621
Author: Hanifi Gunes <hg...@maprtech.com>
Authored: Tue Aug 5 17:05:54 2014 -0700
Committer: Jacques Nadeau <ja...@apache.org>
Committed: Wed Aug 6 16:44:22 2014 -0700

----------------------------------------------------------------------
 exec/java-exec/src/main/codegen/templates/ComplexWriters.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/c6904f91/exec/java-exec/src/main/codegen/templates/ComplexWriters.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/codegen/templates/ComplexWriters.java b/exec/java-exec/src/main/codegen/templates/ComplexWriters.java
index ce839ef..c390770 100644
--- a/exec/java-exec/src/main/codegen/templates/ComplexWriters.java
+++ b/exec/java-exec/src/main/codegen/templates/ComplexWriters.java
@@ -87,8 +87,10 @@ public class ${eName}WriterImpl extends AbstractFieldWriter {
   }
 
   public void setPosition(int idx){
-    super.setPosition(idx);
-    inform(mutator.startNewGroup(idx));
+    if (ok()){
+      super.setPosition(idx);
+      inform(mutator.startNewGroup(idx));
+    }
   }