pepijnve opened a new issue, #709: URL: https://github.com/apache/arrow-java/issues/709
### Describe the bug, including details regarding any error messages, version, and platform. Apache Datafusion creates variable-sized binary arrays whose first offset value into the value buffer is not `0`. When importing these into the Java implementation via the C data interface, `BufferImportTypeVisitor` calculates the size of the value buffer as `offsets[<last>] - offsets[0]`. In the case where `offsets[0] != 0` this results in a too small value for the capacity of the value buffer. When attempting to access the last value in the value buffer, this results in an out of bounds exception -- 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