Skip to content

Commit

Permalink
fix: Set correct memory size (#37551)
Browse files Browse the repository at this point in the history
See also: #37549

Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn authored Nov 8, 2024
1 parent ebc3c82 commit ce2fa3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/serde.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ func (sfw *singleFieldRecordWriter) Write(r Record) error {
sfw.numRows += r.Len()
a := r.Column(sfw.fieldId)

sfw.writtenUncompressed += uint64(a.Data().Buffers()[0].Len())
sfw.writtenUncompressed += uint64(calculateArraySize(a))
rec := array.NewRecord(sfw.schema, []arrow.Array{a}, int64(r.Len()))
defer rec.Release()
return sfw.fw.WriteBuffered(rec)
Expand Down

0 comments on commit ce2fa3d

Please sign in to comment.