We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e14f0 commit 1a1bb75Copy full SHA for 1a1bb75
vector/src/main/java/org/apache/arrow/vector/VectorLoader.java
@@ -122,6 +122,10 @@ private void loadBuffers(
122
(int) (variadicBufferLayoutCount + TypeLayout.getTypeBufferCount(field.getType()));
123
List<ArrowBuf> ownBuffers = new ArrayList<>(bufferLayoutCount);
124
for (int j = 0; j < bufferLayoutCount; j++) {
125
+ if (!buffers.hasNext()) {
126
+ throw new IllegalArgumentException(
127
+ "no more buffers for field " + field + ". Expected " + bufferLayoutCount);
128
+ }
129
ArrowBuf nextBuf = buffers.next();
130
// for vectors without nulls, the buffer is empty, so there is no need to decompress it.
131
ArrowBuf bufferToAdd =
0 commit comments