vibhatha commented on issue #41648:
URL: https://github.com/apache/arrow/issues/41648#issuecomment-2141038682
@aqni could you please try the following
```java
@Test
public void testSplitAndTransferFixedWithVector2() {
RootAllocator allocator = new RootAllocator(Long.MAX_VALUE);
try (BufferAllocator child = allocator.newChildAllocator("child", 0,
Long.MAX_VALUE)) {
try (IntVector vector = new IntVector("vector", child)) {
vector.setSafe(0, 1);
vector.setValueCount(1);
TransferPair transferPair = vector.getTransferPair(allocator);
transferPair.splitAndTransfer(0, 1);
try (ValueVector slice = transferPair.getTo()) {
// no-op try-with-resource
}
}
}
}
```
--
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]