Skip to content

Commit

Permalink
fix: check for empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Jul 24, 2024
1 parent 54906a5 commit 5b5d6ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/influx_inspect/export/export_parquet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}()
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 5b5d6ee

Please sign in to comment.