pitrou commented on code in PR #5070: URL: https://github.com/apache/arrow-rs/pull/5070#discussion_r1391067046
########## arrow-data/src/ffi.rs: ########## @@ -282,6 +286,27 @@ impl FFI_ArrowArray { // If dictionary is not null should be valid for reads of `Self` unsafe { self.dictionary.as_ref() } } + + /// Create a copy of an existing `FFI_ArrowArray` + /// + /// As required by the C Data Interface specification, this sets the `release` member of `Self` + /// to `None`, but without calling the release callback. + pub fn copy(&mut self) -> Self { Review Comment: `self.release` being None indicates that the source has been moved or released, so shouldn't be used anymore. This is a general design principle in the C Data Interface: https://arrow.apache.org/docs/format/CDataInterface.html#released-structure -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org