paleolimbot commented on issue #403:
URL:
https://github.com/apache/arrow-nanoarrow/issues/403#issuecomment-2004681740
> (Also, how is the lifetime of that ArrowArray managed?)
I wonder if `const ArrowArray* array` could be `nanoarrow::UniqueArray&
array`. That would let you do `array.get()` to inspect the value (and you could
move it if you needed ownership).
I think you will need a way to get the error code too as David noted. Maybe:
```
IterateStream it(stream, &error);
for (const auto& item : it) {
// ...
}
NANOARROW_RETURN_NOT_OK(it.result());
// Maybe crash in debug mode if somebody forgets to call result()
```
--
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]