danepitkin commented on code in PR #44078:
URL: https://github.com/apache/arrow/pull/44078#discussion_r1768992924


##########
java/vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthViewVector.java:
##########
@@ -1251,6 +1252,7 @@ public void setNull(int index) {
     // We need to check and reallocate the validity buffer
     while (index >= getValueCapacity()) {
       reallocValidityBuffer();
+      reallocViewBuffer();

Review Comment:
   Out of curiosity, why do we need to call `reallocViewBuffer` here? Could it 
be possible to have null values not backed by a view buffer and only realloc 
when we add non-null values?



-- 
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]

Reply via email to