nbauernfeind commented on code in PR #554:
URL: https://github.com/apache/arrow-java/pull/554#discussion_r1928954320
##########
vector/src/main/java/org/apache/arrow/vector/complex/ListViewVector.java:
##########
@@ -956,7 +956,7 @@ public int getElementStartIndex(int index) {
@Override
public int getElementEndIndex(int index) {
- return sizeBuffer.getInt(index * OFFSET_WIDTH);
+ return offsetBuffer.getInt((index + 1) * OFFSET_WIDTH);
Review Comment:
I don't see any unit tests for it; and if possible would be worth a small
one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]