hcrosse opened a new pull request, #9641:
URL: https://github.com/apache/arrow-rs/pull/9641

   # Which issue does this PR close?
   
   Closes #9435
   
   # Rationale for this change
   
   `total_buffer_bytes_used()` only counts non-inlined strings (> 12 bytes), so 
it returns 0 for arrays of short strings. This makes it unsuitable as a 
capacity hint when pre-allocating output buffers (e.g. in DataFusion's 
`concat()`/`concat_ws()`).
   
   # What changes are included in this PR?
   
   Adds `total_bytes_len()` to `GenericByteViewArray`, which sums byte lengths 
of all non-null values including inlined strings.
   
   # Are there any user-facing changes?
   
   New public method on `GenericByteViewArray` (and by extension 
`StringViewArray` / `BinaryViewArray`).


-- 
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]

Reply via email to