emilk commented on code in PR #10730:
URL: https://github.com/apache/arrow-rs/pull/10730#discussion_r3806774580


##########
arrow-schema/src/ffi.rs:
##########
@@ -133,16 +133,21 @@ unsafe extern "C" fn release_schema(schema: *mut 
FFI_ArrowSchema) {
 
 impl FFI_ArrowSchema {
     /// create a new [`FFI_ArrowSchema`]. This fails if the fields'
-    /// [`DataType`] is not supported.
-    ///
-    /// # Panics
-    ///
-    /// Panics if `format` contains an interior nul byte

Review Comment:
   That is what this PR does: `try_new` no longer has a `# Panics` section, and 
the interior nul byte now returns `ArrowError::CDataInterface`, matching what 
`with_name` already did. The conversion also moved above the `Box::into_raw` 
calls so the error path does not leak the children.
   
   -- Claude



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