lidavidm commented on code in PR #1292:
URL: https://github.com/apache/arrow-java/pull/1292#discussion_r4002170784
##########
vector/src/main/java/org/apache/arrow/vector/util/VectorAppender.java:
##########
@@ -601,8 +601,8 @@ public ValueVector visit(UnionVector deltaVector, Void
value) {
UnionVector targetUnionVector = (UnionVector) targetVector;
int newValueCount = targetVector.getValueCount() +
deltaVector.getValueCount();
- // make sure there is enough capacity
- while (targetUnionVector.getValueCapacity() < newValueCount) {
+ // Child vectors are created and expanded below; an empty union has zero
value capacity.
Review Comment:
```suggestion
```
--
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]