[
https://issues.apache.org/jira/browse/ARROW-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660245#comment-17660245
]
Rok Mihevc commented on ARROW-3222:
-----------------------------------
This issue has been migrated to [issue
#19566|https://github.com/apache/arrow/issues/19566] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [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)