Skip to content

Commit

Permalink
Use num rows metadata versus assuming
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Apr 4, 2024
1 parent c9a5c17 commit 552bced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/parsers/parquet/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (p *Parser) Parse(buf []byte) ([]telegraf.Metric, error) {
return nil, nil
}

metrics := make([]telegraf.Metric, len(data[0]))
metrics := make([]telegraf.Metric, metadata.NumRows)
now := time.Now()
for colIndex, col := range data {
for i, val := range col {
Expand Down

0 comments on commit 552bced

Please sign in to comment.