vibhatha commented on code in PR #40340:
URL: https://github.com/apache/arrow/pull/40340#discussion_r1579838310
##########
java/vector/src/test/java/org/apache/arrow/vector/TestVarCharViewVector.java:
##########
Review Comment:
@lidavidm just curious in `ListVector` I observed the following
```java
try (final VarCharVector vector = new VarCharVector("myviewvector",
allocator)) {
vector.allocateNew(128, 3);
vector.set(0, "abc".getBytes(StandardCharsets.UTF_8));
vector.set(1, "012".getBytes(StandardCharsets.UTF_8));
vector.set(2, "567".getBytes(StandardCharsets.UTF_8));
vector.set(0, "efghi".getBytes(StandardCharsets.UTF_8));
vector.setValueCount(3);
System.out.println(vector);
Text t1 = vector.getObject(0);
Text t2 = vector.getObject(1);
Text t3 = vector.getObject(2);
System.out.println(t1 + ", " + t1.getLength());
System.out.println(t2 + ", " + t2.getLength());
System.out.println(t3 + ", " + t3.getLength());
}
```
Output
```bash
[efghi, , ]
efghi, 5
, 0
, 0
```
Is this the expected behavior?
--
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]