Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [6/7] git commit: DRILL-464: Fix for RepeatedValueVectors not loading correctly


Copy link to this message
-
[6/7] git commit: DRILL-464: Fix for RepeatedValueVectors not loading correctly
DRILL-464: Fix for RepeatedValueVectors not loading correctly
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/0b85baa3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/0b85baa3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/0b85baa3

Branch: refs/heads/master
Commit: 0b85baa3b9013849ccb6674c69e236f57797e98b
Parents: dafd53a
Author: Steven Phillips <[EMAIL PROTECTED]>
Authored: Tue Mar 18 13:25:29 2014 -0700
Committer: Jacques Nadeau <[EMAIL PROTECTED]>
Committed: Sat Mar 29 11:28:28 2014 -0700

 .../src/main/codegen/templates/RepeatedValueVectors.java         | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/0b85baa3/exec/java-exec/src/main/codegen/templates/RepeatedValueVectors.java
diff --git a/exec/java-exec/src/main/codegen/templates/RepeatedValueVectors.java b/exec/java-exec/src/main/codegen/templates/RepeatedValueVectors.java
index 44ba553..8d5e90a 100644
+++ b/exec/java-exec/src/main/codegen/templates/RepeatedValueVectors.java
@@ -38,8 +38,6 @@ package org.apache.drill.exec.vector;
 
  public final class Repeated${minor.class}Vector extends BaseValueVector implements Repeated<#if type.major == "VarLen">VariableWidth<#else>FixedWidth</#if>Vector {
 
-  private MaterializedField field;
-  
   private int parentValueCount;
   private int childValueCount;
  
@@ -145,7 +143,7 @@ package org.apache.drill.exec.vector;
     this.childValueCount = childValueCount;
     int loaded = 0;
     loaded += offsets.load(parentValueCount+1, buf.slice(loaded, buf.capacity() - loaded));
-    loaded += values.load(dataBytes, childValueCount, buf.slice(loaded, buf.capacity() - loaded));
+    loaded += values.load(dataBytes + 4*(childValueCount + 1), childValueCount, buf.slice(loaded, buf.capacity() - loaded));
     return loaded;
   }