alamb opened a new issue #1679:
URL: https://github.com/apache/arrow-datafusion/issues/1679


   **Describe the bug**
   
   The `DiskManager` passes out `String`s rather than `TempFile`s. The 
tempfiles are eventually cleaned up, but only when the `DiskManager` is 
`drop`ed , rather than the actual temp file use us is complete.
   
   This both leaves temporary files around longer than necessary, and would 
cause trouble with a long lived  `DiskManager` across plans.
   
   **To Reproduce**
   Make a shared `DiskManager` and run queries that spill to disk. The files 
will not be cleaned up until the `DiskManager` is dropped 
   
   **Expected behavior**
   When the temp file is no longer in use, it should be dropped 
   
   **Additional context**
   Noticed while working on 
https://github.com/apache/arrow-datafusion/pull/1668 I noticed that the 


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