lidavidm commented on code in PR #37838:
URL: https://github.com/apache/arrow/pull/37838#discussion_r1335924223
##########
java/vector/src/test/java/org/apache/arrow/vector/TestListVector.java:
##########
Review Comment:
Can we also add a test in TestLargeListVector?
##########
java/vector/src/test/java/org/apache/arrow/vector/TestListVector.java:
##########
@@ -1115,6 +1115,14 @@ public void testIsEmpty() {
}
}
+ @Test
+ public void testTotalCapacity() {
+ try (final ListVector vector = ListVector.empty("list", allocator)) {
+ vector.setInitialTotalCapacity(10, 100);
+ assertEquals(100, vector.getValueCapacity());
Review Comment:
```suggestion
assertEquals(10, vector.getValueCapacity());
assertEquals(10, vector.getDataVector().getValueCapacity());
```
--
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]