You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/25 20:40:24 UTC

[GitHub] [arrow-rs] alippai opened a new issue #352: Shortcut for utf8 bytes append

alippai opened a new issue #352:
URL: https://github.com/apache/arrow-rs/issues/352


   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   I want to append utf8 bytes from a trusted source to a `GenericStringBuilder` directly.
   
   **Describe the solution you'd like**
   I'd add a `fn append_slice(&mut self, value: &[u8])` helper function to the GenericStringBuilder struct.
   
   **Describe alternatives you've considered**
   Currently this is a workaround:
   `use arrow::array::GenericStringBuilder.append_value(std::str::from_utf8_unchecked(my_bytes))`
   
   Related links:
   - https://docs.rs/arrow/4.1.0/src/arrow/array/builder.rs.html#1189-1196
   - https://doc.rust-lang.org/src/core/str/converts.rs.html#157-165
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org