cwang9208 opened a new issue, #34423:
URL: https://github.com/apache/arrow/issues/34423

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   `path = ""
   files = os.listdir(path)
   expr = pc.field("l_shipdate") <= datetime.date(1998, 12, 1)
   
   for file in files:
       source = pa.memory_map(path + file)
       table = pa.ipc.RecordBatchFileReader(source).read_all().filter(expr)
       source.close()
   `
   
   I have a simple program to test the memory usage of MemoryMappedFile. In my 
above test, I'll loop over hundreds of 7GB files. I find the system memory 
usage continues to increase until exhausted even though I called source.close().
   
   Is there anything wrong with my code or is this a bug?
   
   Thanks for help in advance.
   
   ### Component(s)
   
   Python


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