dopelsunce opened a new issue, #3719: URL: https://github.com/apache/arrow-rs/issues/3719
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** I'm using `SerializedFileWriter` to write byte arrays to parquet files in my project which implements a C# binding to the parquet crate. I find it difficult to construct `ByteArray` from raw bytes received across FFI. A conversion path from `bytes::Bytes` to `ByteArray` would be really useful. Right now, `ByteArray` only supports conversion from `Vec<u8>` and `&str`. **Describe the solution you'd like** Implement `From<Bytes>` for ByteArray, **Describe alternatives you've considered** For now, I'm using `util::memory::ByteBufferPtr` hidden behind the `experimental` feature flag to achieve this goal. **Additional context** I find `ByteArray` is a wrapper around `Bytes`. Short term, we can add trait `From<Bytes>`. In comments above `ByteBufferPtr`, > TODO: Remove and replace with [`bytes::Bytes`]". I agree ideally we should remove the internal struct `ByteBufferPtr`. -- 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]
