This PR mainly does two improvements when constructing ArrowArrays
checks for errors when calling any nanoarrow APIs that would return an ArrowErrorCode
uses nanoarrow::UniqueArray when constructing an ArrowArray so we don't need to manually release half-done ArrowArrays when any error occurs during the constructing stage.
This PR mainly does two improvements when constructing
ArrowArray
sArrowErrorCode
nanoarrow::UniqueArray
when constructing anArrowArray
so we don't need to manually release half-doneArrowArray
s when any error occurs during the constructing stage.