parthchandra commented on code in PR #1554:
URL: https://github.com/apache/datafusion-comet/pull/1554#discussion_r2003757965


##########
common/src/main/java/org/apache/comet/parquet/NativeBatchReader.java:
##########
@@ -459,7 +459,9 @@ public void close() throws IOException {
       importer = null;
     }
     nativeUtil.close();
-    Native.closeRecordBatchReader(this.handle);
+    if (handle > 0) {
+      Native.closeRecordBatchReader(this.handle);
+    }

Review Comment:
   And should we set handle to zero after being closed? 



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to