aboutsummaryrefslogtreecommitdiff
path: root/exec/vector
diff options
context:
space:
mode:
authorPadma Penumarthy <ppenumar97@yahoo.com>2018-05-10 15:29:27 -0700
committerBen-Zvi <bben-zvi@mapr.com>2018-05-30 11:16:49 -0700
commit31be83ebf5c58ca9ce3862369b4a828589f496f8 (patch)
tree88ccb233a543903716c832fe3097c46188bb9380 /exec/vector
parente05a7e89262dd9f94e3c21160b9d71ac84b5ba1a (diff)
DRILL-6402: Repeated Value Vectors copyFrom methods are not updating
the value count and writer index correctly for values vector
Diffstat (limited to 'exec/vector')
-rw-r--r--exec/vector/src/main/codegen/templates/RepeatedValueVectors.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec/vector/src/main/codegen/templates/RepeatedValueVectors.java b/exec/vector/src/main/codegen/templates/RepeatedValueVectors.java
index e9884208f..4e6edb580 100644
--- a/exec/vector/src/main/codegen/templates/RepeatedValueVectors.java
+++ b/exec/vector/src/main/codegen/templates/RepeatedValueVectors.java
@@ -172,6 +172,7 @@ public final class Repeated${minor.class}Vector extends BaseRepeatedValueVector
for (int i = 0; i < count; i++) {
mutator.add(outIndex, vAccessor.get(inIndex, i));
}
+ mutator.setValueCount(outIndex+1);
}
public void copyFromSafe(int inIndex, int outIndex, Repeated${minor.class}Vector v) {
@@ -181,6 +182,7 @@ public final class Repeated${minor.class}Vector extends BaseRepeatedValueVector
for (int i = 0; i < count; i++) {
mutator.addSafe(outIndex, vAccessor.get(inIndex, i));
}
+ mutator.setValueCount(outIndex+1);
}
@Override