viirya commented on code in PR #40043:
URL: https://github.com/apache/arrow/pull/40043#discussion_r1485839641


##########
java/adapter/jdbc/src/test/java/org/apache/arrow/adapter/jdbc/ResultSetUtilityTest.java:
##########
@@ -50,6 +50,7 @@ public void testZeroRowResultSet() throws Exception {
         assertNotNull("VectorSchemaRoot from first next() result should never 
be null", root);
         assertEquals("VectorSchemaRoot from empty ResultSet should have zero 
rows", 0, root.getRowCount());
         assertFalse("hasNext() should return false on empty ResultSets after 
initial next() call", iter.hasNext());
+        root.close();

Review Comment:
   This is needed to release initial offset buffer for empty array.



-- 
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]

Reply via email to