nbauernfeind opened a new issue, #470:
URL: https://github.com/apache/arrow-java/issues/470

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   This method is incorrectly implemented:
   ```java
     @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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to