You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "jordepic (via GitHub)" <gi...@apache.org> on 2026/06/09 21:17:21 UTC

[I] [Java] Incorrect size computed for var-width vectors with non-zero start offsets when appending them [arrow-java]

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

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   When appending a variable width vector to another in Java, it computes the size of the currently appended vector by just taking its end offset. It never subtracts the start offset because the majority of start offsets are 0. However, if another language slices a buffer and passes it to Java, it may have a non zero starting offset. This causes us to drastically overestimate the amount of memory to allocate and can cause errors downstream.


-- 
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-unsubscribe@arrow.apache.org.apache.org

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