Skip to content

Commit

Permalink
fix: do not initialize maps for schema with initial size
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Sep 5, 2024
1 parent 27fc88f commit 20011cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/influx_tools/parquet/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ func (e *exporter) shardSchema(shard *tsdb.Shard) (*index.MeasurementSchema, err
return nil, nil
}

tagSet := make(map[string]struct{}, len(tagKeys))
tagSet := make(map[string]struct{})
for _, key := range tagKeys[0].Keys {
tagSet[key] = struct{}{}
}
fieldSet := make(map[index.MeasurementField]struct{}, fields.FieldN())
fieldSet := make(map[index.MeasurementField]struct{})
for name, field := range fields.FieldSet() {
blockType, err := tsm1.BlockTypeForType(field.Zero())
if err != nil {
Expand Down

0 comments on commit 20011cf

Please sign in to comment.