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 2015/04/15 17:56:04 UTC
[3/6] drill git commit: DRILL-2788: fix NullableVV empty population
logic
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 <hg...@maprtech.com>
Authored: Tue Apr 14 13:08:31 2015 -0700
Committer: Jacques Nadeau <ja...@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();