Yicong-Huang opened a new pull request, #967: URL: https://github.com/apache/arrow-java/pull/967
## What's Changed Fix offset buffer not allocated for nested empty `ListVector`/`LargeListVector` during IPC serialization. When outer array is empty, nested writers are never invoked, so child list's offset buffer remains unallocated (`capacity = 0`). This violates Arrow spec which requires `offset[0] = 0`. ### Fix Apply the same fix to `getFieldBuffers()` as in `exportCDataBuffers()`: allocate offset buffer if `capacity == 0`. ### Testing Added tests for nested empty lists verifying offset buffer allocation and `offset[0] = 0`. Closes #343. -- 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]
