MCPcopy Create free account
hub / github.com/apache/arrow-rs / get_stream_last_error

Method get_stream_last_error

arrow-array/src/ffi_stream.rs:338–348  ·  view source on GitHub ↗

Get the last error from `ArrowArrayStreamReader`

(&mut self)

Source from the content-addressed store, hash-verified

336
337 /// Get the last error from `ArrowArrayStreamReader`
338 fn get_stream_last_error(&mut self) -> Option<String> {
339 let get_last_error = self.stream.get_last_error?;
340
341 let error_str = unsafe { get_last_error(&mut self.stream) };
342 if error_str.is_null() {
343 return None;
344 }
345
346 let error_str = unsafe { CStr::from_ptr(error_str) };
347 Some(error_str.to_string_lossy().to_string())
348 }
349}
350
351impl Iterator for ArrowArrayStreamReader {

Callers 1

nextMethod · 0.80

Calls 2

get_last_errorFunction · 0.85
is_nullMethod · 0.45

Tested by

no test coverage detected