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.
Reactions are currently unavailable
This method is incorrectly implemented:
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:
This issue exists in main as of 480e1be.