PURVANGIKA commented on issue #470:
URL: https://github.com/apache/arrow-java/issues/470#issuecomment-2601520276
This method is incorrectly implemented:
@Override
public int getElementEndIndex(int index) {
return sizeBuffer.getInt(index * OFFSET_WIDTH);
}
https://github.com/apache/arrow-java/blob/main/vector/src/main/java/org/apache/arrow/vector/complex/ListViewVector.java#L957-L960
The javadoc indicates this is an offset not a length:
/** Get data vector end index with the given list index. */
int getElementEndIndex(int index);
This issue exists in main as of
[480e1be](https://github.com/apache/arrow-java/commit/480e1be6b7c5fa7bb0aab67c6f700059e4fcd3ea).
--
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]