asfimport opened a new issue, #273: URL: https://github.com/apache/arrow-java/issues/273
I am reporting what I think might be two related bugs in `org.apache.arrow.vector.BaseVariableWidthVector` 1. The offset buffer is initialized as empty. I expect that it to have 4 bytes that represent the integer zero. 1. The `getBufferSize` method returns 0 when value count is zero, instead of 4. Compare to the pyarrow implementation, which I believe correctly populates the offset buffer: ```java >>> import pyarrow as pa >>> array = pa.array([], type=pa.binary()) >>> array <pyarrow.lib.BinaryArray object at 0x7f4f68b858e8> [] >>> print([b.hex().decode() for b in array.buffers()]) ['', '00000000', ''] ``` **Reporter**: [Steve M. Kim](https://issues.apache.org/jira/browse/ARROW-7342) <sub>**Note**: *This issue was originally created as [ARROW-7342](https://issues.apache.org/jira/browse/ARROW-7342). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*</sub> -- 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