[
https://issues.apache.org/jira/browse/ARROW-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rok Mihevc updated ARROW-3222:
------------------------------
External issue URL: https://github.com/apache/arrow/issues/19566
> [JAVA] Vector should avoid reallocating validity buffer when necessary
> ----------------------------------------------------------------------
>
> Key: ARROW-3222
> URL: https://issues.apache.org/jira/browse/ARROW-3222
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java
> Affects Versions: 0.11.0
> Reporter: Zhenyuan Zhao
> Priority: Major
>
> Vector always reallocates validity buffer in the case of all-null or non-null
> [https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/BaseFixedWidthVector.java#L511]
> [https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/BitVectorHelper.java#L180]
> Ideally we should only allocate if the source was not provided
--
This message was sent by Atlassian Jira
(v8.20.10#820010)