You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArrowArray::try_from_raw accepts *const FFI_ArrowArray and *const FFI_ArrowSchema. As of #1449 no longer takes ownership of the pointers, and instead "moves" the contents into its own allocations. The method is unsafe, and so this technically isn't unsound, but it is fairly surprising to people unfamiliar with the interface who might assume they can pass in a const reference.
Related to this, the fact it doesn't take ownership makes it very easy to accidentally leak memory #1878 and #3683
To Reproduce
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
ArrowArray::try_from_raw
accepts*const FFI_ArrowArray
and*const FFI_ArrowSchema
. As of #1449 no longer takes ownership of the pointers, and instead "moves" the contents into its own allocations. The method is unsafe, and so this technically isn't unsound, but it is fairly surprising to people unfamiliar with the interface who might assume they can pass in a const reference.Related to this, the fact it doesn't take ownership makes it very easy to accidentally leak memory #1878 and #3683
To Reproduce
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: