G-Research / ParquetSharp

ParquetSharp is a .NET library for reading and writing Apache Parquet files.
Apache License 2.0
183 stars 49 forks source link

Make sure that RandomAccessFile is not freed prematurely #436

Closed marcin-krystianc closed 7 months ago

marcin-krystianc commented 7 months ago

Fixes https://github.com/G-Research/ParquetSharp/issues/432

By capturing the RandomAccessFile in the Free method, we make sure that it is not collected before the Free method is called.