Commit 5e71a2a
authored
MINOR: Add explicit exception when no more buffer can be read when loading buffers (#649)
## What's Changed
When `VectorLoader` tries to load buffers (i.e., `loadBuffers`), it has
detect on the error case that some buffers are not consumed. But another
error that the number of buffers is less than expected is not handled
for now. Once it is happened, users will get
`java.util.NoSuchElementException` which is not easy to understand.
This patch adds an explicit exception for such case.
See more discussion at #648.1 parent 26e14f0 commit 5e71a2a
File tree
1 file changed
+4
-0
lines changed- vector/src/main/java/org/apache/arrow/vector
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
0 commit comments