xitongsys / parquet-go

pure golang library for reading/writing parquet file
Apache License 2.0
1.25k stars 294 forks source link

Cannot read parquet file after calling WriteStop twice #512

Closed N-o-Z closed 1 year ago

N-o-Z commented 1 year ago

When writing a parquet file and calling WriteStop twice, the footer gets corrupted and we get an error trying to read the file afterwards

Error: 2023/01/03 16:17:59 Can't create parquet reader [NextRowGroup] Column not found: Parquet_go_rootColA

Link to example code: https://go.dev/play/p/GVgLbTiE0ti