timsaucer opened a new pull request, #17190:
URL: https://github.com/apache/datafusion/pull/17190

   ## Which issue does this PR close?
   
   None
   
   ## Rationale for this change
   
   When using the foreign function interface, a 
`Box<RecordBatchStreamPrivateData>` is created but it is never properly freed. 
This leads to a growth in memory over time as these are used.
   
   ## What changes are included in this PR?
   
   Adds a `release` function to FFI_RecordBatchStream and implements `Drop`.
   
   ## Are these changes tested?
   
   Tested against `datafusion-python` where it is easy to track memory growth 
and to implement FFI based table providers.
   
   ## Are there any user-facing changes?
   
   None
   


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