zhztheplayer commented on a change in pull request #10108:
URL: https://github.com/apache/arrow/pull/10108#discussion_r623223851
##########
File path:
java/dataset/src/test/java/org/apache/arrow/dataset/file/TestFileSystemDataset.java
##########
@@ -126,6 +128,7 @@ public void testParquetBatchSize() throws Exception {
checkParquetReadResult(schema, writeSupport.getWrittenRecords(), datum);
AutoCloseables.close(datum);
+ AutoCloseables.close(factory);
Review comment:
They are not able to be combined directly. The first line calls code
https://github.com/apache/arrow/blob/0a3cbd0b7337b464ef55619672727ebe6f65ad05/java/memory/memory-core/src/main/java/org/apache/arrow/util/AutoCloseables.java#L82-L109
second line calls
https://github.com/apache/arrow/blob/0a3cbd0b7337b464ef55619672727ebe6f65ad05/java/memory/memory-core/src/main/java/org/apache/arrow/util/AutoCloseables.java#L74-L76
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]