drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacq...@apache.org
Subject [3/6] drill git commit: DRILL-2788: fix NullableVV empty population logic
Date Wed, 15 Apr 2015 15:56:04 GMT
DRILL-2788: fix NullableVV empty population logic


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

Branch: refs/heads/master
Commit: 75455e809c34bbcc79da8a517e955f19f521a6a8
Parents: 99b6d0e
Author: Hanifi Gunes <hgunes@maprtech.com>
Authored: Tue Apr 14 13:08:31 2015 -0700
Committer: Jacques Nadeau <jacques@apache.org>
Committed: Wed Apr 15 07:02:56 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/drill/blob/75455e80/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java b/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java
index 075316e..b4b837f 100644
--- a/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java
+++ b/exec/java-exec/src/main/codegen/templates/NullableValueVectors.java
@@ -476,8 +476,8 @@ public final class ${className} extends BaseDataValueVector implements
<#if type
 
     <#if type.major == "VarLen">
     private void fillEmpties(int index){
-      for (int i = lastSet + 1; i < index; i++) {
-        values.getMutator().setSafe(i, new byte[]{});
+      for (int i = lastSet; i < index; i++) {
+        values.getMutator().setSafe(i+1, new byte[]{});
       }
       if (index > bits.getValueCapacity()) {
         bits.reAlloc();


Mime
View raw message