tisonkun commented on issue #465:
URL: https://github.com/apache/arrow-java/issues/465#issuecomment-2562192289
For example, when I wrote:
```java
while (reader.loadNextBatch()) {
final VectorSchemaRoot source = reader.getVectorSchemaRoot();
final VectorSchemaRoot copy =
VectorSchemaRoot.create(source.getSchema(), allocator);
new VectorLoader(copy).load(new
VectorUnloader(source).getRecordBatch());
batches.add(copy);
}
```
It seems the intermediate ArrowRecordBatch should be closed but it's very
easy to get it wrong and receive a runtime exception ..
--
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]