mbrobbel commented on code in PR #8771: URL: https://github.com/apache/arrow-rs/pull/8771#discussion_r2486648522
########## arrow-array/src/array/primitive_array.rs: ########## @@ -501,6 +504,27 @@ pub use crate::types::ArrowPrimitiveType; /// assert_eq!(arr.values(), &[1, 2, 3, 4]) /// ``` /// +/// # Example: To a `Vec<T>` +/// +/// *Note*: Converting a `PrimitiveArray` to a `Vec` does not copy the data. Review Comment: Maybe we should link https://docs.rs/arrow/latest/arrow/buffer/struct.Buffer.html#method.into_vec because this isn't always zero copy (https://docs.rs/arrow-buffer/57.0.0/src/arrow_buffer/buffer/scalar.rs.html#193-200). -- 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]
