diff --git a/cmd/influx_inspect/export/export_parquet.go b/cmd/influx_inspect/export/export_parquet.go index eb1647465c9..9eebb03f27c 100644 --- a/cmd/influx_inspect/export/export_parquet.go +++ b/cmd/influx_inspect/export/export_parquet.go @@ -54,6 +54,10 @@ func (cmd *Command) writeValuesParquet(_ io.Writer, seriesKey []byte, field stri } func (cmd *Command) exportDoneParquet(_ string) error { + if len(vc) == 0 { + return nil + } + defer func() { vc = nil }() @@ -87,7 +91,7 @@ func (cmd *Command) exportDoneParquet(_ string) error { TagSet: tagSet, FieldSet: fieldSet, } - // schema does not change in a table + // schema does not change in a table in one tsm file break }