From 2480076906917e96b91cec071eab572bcb9b555d Mon Sep 17 00:00:00 2001 From: David Morrison Date: Thu, 22 Feb 2024 11:01:29 -0800 Subject: [PATCH] close parquetfile after done writing --- writer/writer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/writer/writer.go b/writer/writer.go index 3efaf5e4..8c743f4d 100644 --- a/writer/writer.go +++ b/writer/writer.go @@ -220,6 +220,9 @@ func (pw *ParquetWriter) WriteStop() error { if _, err = pw.PFile.Write([]byte("PAR1")); err != nil { return err } + if err = pw.PFile.Close(); err != nil { + return err + } return nil }