Skip to content

Commit

Permalink
fix: return error (temporarily) when tagkeys are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Sep 5, 2024
1 parent 3697f75 commit 27fc88f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/influx_tools/parquet/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package parquet
import (
"bytes"
"context"
"errors"
"fmt"
"golang.org/x/exp/maps"
"io"
Expand Down Expand Up @@ -184,7 +185,7 @@ func (e *exporter) shardSchema(shard *tsdb.Shard) (*index.MeasurementSchema, err
return nil, err
}
if len(tagKeys) == 0 {
return nil, nil
return nil, errors.New("nil tagkeys")
}
if len(tagKeys) != 1 {
return nil, fmt.Errorf("unexpected length of tagkeys: %d", len(tagKeys))
Expand Down

0 comments on commit 27fc88f

Please sign in to comment.