aboutsummaryrefslogtreecommitdiff
path: root/exec/vector
diff options
context:
space:
mode:
authorPadma Penumarthy <ppenumar97@yahoo.com>2018-04-06 12:56:06 -0700
committerVitalii Diravka <vitalii.diravka@gmail.com>2018-04-29 23:20:55 +0300
commitf563f38225d96872fd4bff237c1d70469b2664bf (patch)
tree2fdc393f92f62bcead7e748615d21a638079c33f /exec/vector
parent28a29033c0a966b4bd65ac691a7b86f41637cae2 (diff)
DRILL-6307: Handle empty batches in record batch sizer correctly
closes #1228
Diffstat (limited to 'exec/vector')
-rw-r--r--exec/vector/src/main/java/org/apache/drill/exec/vector/AllocationHelper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/exec/vector/src/main/java/org/apache/drill/exec/vector/AllocationHelper.java b/exec/vector/src/main/java/org/apache/drill/exec/vector/AllocationHelper.java
index 4fd0cbd48..b0687d20c 100644
--- a/exec/vector/src/main/java/org/apache/drill/exec/vector/AllocationHelper.java
+++ b/exec/vector/src/main/java/org/apache/drill/exec/vector/AllocationHelper.java
@@ -22,8 +22,10 @@ import org.apache.drill.exec.vector.complex.RepeatedVariableWidthVectorLike;
public class AllocationHelper {
+ public static final int STD_REPETITION_FACTOR = 5;
+
public static void allocate(ValueVector vector, int valueCount, int bytesPerValue) {
- allocate(vector, valueCount, bytesPerValue, 5);
+ allocate(vector, valueCount, bytesPerValue, STD_REPETITION_FACTOR);
}
public static void allocatePrecomputedChildCount(ValueVector vector, int valueCount, int bytesPerValue, int childValCount) {