1 parent 46b3712 commit f8398b1Copy full SHA for f8398b1
1 file changed
vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthViewVector.java
@@ -1405,7 +1405,8 @@ public final int getTotalValueLengthUpToIndex(int index) {
1405
}
1406
1407
protected final void handleSafe(int index, int dataLength) {
1408
- // The view buffer stores one fixed-width view per value; payload bytes are allocated separately.
+ // The view buffer stores one fixed-width view per value; payload bytes are allocated
1409
+ // separately.
1410
final long targetCapacity = roundUpToMultipleOf16(((long) index + 1) * ELEMENT_SIZE);
1411
if (viewBuffer.capacity() < targetCapacity) {
1412
reallocViewBuffer(targetCapacity);
0 commit comments