Zhenyuan Zhao created ARROW-3222: ------------------------------------ Summary: [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
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 (v7.6.3#76005)