Kontinuation commented on code in PR #890:
URL: https://github.com/apache/datafusion-comet/pull/890#discussion_r1736813612


##########
spark/src/main/java/org/apache/comet/CometBatchIterator.java:
##########
@@ -45,12 +49,27 @@ public class CometBatchIterator {
    * indicating the end of the iterator.
    */
   public long[] next() {
+    // The native executor should have moved the previous batch, it is safe 
for us to deallocate
+    // the ArrowSchema and ArrowArray base structures.

Review Comment:
   Yes, even though the native operator save batches internally, the batch 
would be moved to the native operator to be saved.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to