andygrove commented on code in PR #1554: URL: https://github.com/apache/datafusion-comet/pull/1554#discussion_r2003770078
########## 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: nit: we refer to both `handle` and `this.handle`. I assume they are the same thing but it would be nice to make them consistent -- 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