parquet-dotnet
parquet-dotnet copied to clipboard
ParquetWriter.Dispose() can now be called multiple times
ParquetWriter.Dispose() can now be called multiple times without degenerate writes to the underlying stream.
Fixes
Issue # Multiple calls to ParquetWriter.Dispose() cause degenerate writes to the underlying stream.
Description
It should be possible to call Dispose() multiple times on an object without consequence. The current implementation of ParquetWriter does not track its disposal state and will rewrite data to the stream every time Dispose() is called.
- [x] I have included unit tests validating this fix.
- [x] I have updated markdown documentation where required.
- [x] I understand that successful approval of my pull request requires reproducible tests as per Contribution Guideline.