EnricoMi opened a new pull request, #6472:
URL: https://github.com/apache/arrow-rs/pull/6472

   # Which issue does this PR close?
   Together with #6462 fixes #6471.
   
   # Rationale for this change
   Data coming from Python could be misaligned. Using them will fail (see 
#6471):
   
       Memory pointer from external source (e.g, FFI) is not aligned with the 
specified scalar type.
       Before importing buffer through FFI, please make sure the allocation is 
aligned.
   
   Costly copying the data is better than failing and not being able to use the 
data.
   
   # What changes are included in this PR?
   Call existing `ArrayData.align_buffers` right after array data are retrieved 
via FFI (as suggested by the error message).
   
   # Are there any user-facing changes?
   Data become useable.


-- 
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]

Reply via email to