From 5b5d6ee724e5255426d59820c07f90e26647064a Mon Sep 17 00:00:00 2001 From: Ales Pour Date: Wed, 24 Jul 2024 14:26:18 +0200 Subject: [PATCH] fix: check for empty input --- cmd/influx_inspect/export/export_parquet.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }