Skip to content

Commit

Permalink
fix granule size calc
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Feb 10, 2024
1 parent 9d0bd67 commit 2dda1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/persistance.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (s *Store) Save(r arrow.Record, idx index.Full) (*v1.Granule, error) {
return &v1.Granule{
Min: int64(idx.Min()),
Max: int64(idx.Max()),
Size: size + idx.Size(),
Size: size + uint64(buf.Len()),
Id: id,
Rows: uint64(r.NumRows()),
}, nil
Expand Down

0 comments on commit 2dda1c9

Please sign in to comment.