westonpace commented on issue #34423:
URL: https://github.com/apache/arrow/issues/34423#issuecomment-1456938403
Probably. What happens if you put a manual `gc` run in the loop?
```
import gc
...
for file in files:
source = pa.memory_map(path + file)
table = pa.ipc.RecordBatchFileReader(source).read_all().filter(expr)
source.close()
gc.collect()
```
I'm wondering if some dangling python object (e.g. maybe the
`pa.ipc.RecordBatchReader`) is hanging around and keeping references to buffers.
--
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]