mapleFU commented on PR #39497:
URL: https://github.com/apache/arrow/pull/39497#issuecomment-1884163057
```go
// EstimatedDataEncodedSize returns the current number of bytes that have
// been buffered so far
func (enc *PlainBooleanEncoder) EstimatedDataEncodedSize() int64 {
return int64(enc.sink.Len() +
int(bitutil.BytesForBits(int64(enc.wr.Pos()))))
}
```
@zeroshade This might suffer from problem when `enc.wr == nil`. However, if
all input is null, the `Put` would also be called here...Would we leave it here
or also fixing this?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]