Yifeng-Sigma opened a new issue, #38836: URL: https://github.com/apache/arrow/issues/38836
### Describe the usage question you have. Please include as many useful details as possible. I want to do some record splitting/merging based on the size, but didn't find a reliable way to estimate the size. There are two ways: ``` for _, col := range rec.Columns() { for _, buffer := range col.Data().Buffers() { if buffer != nil { bytes += uint64(buffer.Cap()) } } ```} or ``` func computeColumnSize(col arrow.Array) uint64 { switch colType := col.DataType().(type) { case arrow.BinaryDataType: switch arr := col.(type) { case *array.String: return uint64(arr.ValueOffset(arr.Len()) - arr.ValueOffset(0)) // ... } } } ``` I'm wondering what's the recommended way to compute the size of `arrow.Record`. ### Component(s) Go -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org