fornwall commented on code in PR #10844:
URL: https://github.com/apache/arrow-rs/pull/10844#discussion_r3862106799
##########
arrow-array/src/ffi_stream.rs:
##########
@@ -348,9 +374,12 @@ fn get_stream_schema(stream_ptr: *mut
FFI_ArrowArrayStream) -> Result<SchemaRef>
let schema = Schema::try_from(&schema)?;
Ok(Arc::new(schema))
} else {
- Err(ArrowError::CDataInterface(format!(
- "Cannot get schema from input stream. Error code: {ret_code:?}"
- )))
+ let message = format!("Cannot get schema from input stream. Error
code: {ret_code}");
+ let message = match unsafe { producer_error(stream_ptr) } {
Review Comment:
👍 Added safety comments in 57e7f157579a458d32f83beb6d7ccdb3b6a36e4f.
--
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]