diff options
author | Padma Penumarthy <ppenumar97@yahoo.com> | 2018-04-06 12:56:06 -0700 |
---|---|---|
committer | Vitalii Diravka <vitalii.diravka@gmail.com> | 2018-04-29 23:20:55 +0300 |
commit | f563f38225d96872fd4bff237c1d70469b2664bf (patch) | |
tree | 2fdc393f92f62bcead7e748615d21a638079c33f /exec/vector | |
parent | 28a29033c0a966b4bd65ac691a7b86f41637cae2 (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.java | 4 |
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) { |