paleolimbot opened a new pull request, #39985:
URL: https://github.com/apache/arrow/pull/39985

   ### Rationale for this change
   
   ChunkedArrays have an unambiguous representation as a stream of arrays. 
#39455 added the ability to import/export in C++...this PR wires up the new 
functions in pyarrow.
   
   ### What changes are included in this PR?
   
   - Added `__arrow_c_stream__()` and `_import_from_c_capsule()` to the 
`ChunkedArray`
   
   ### Are these changes tested?
   
   Working on it!
   
   ```
   >>> import pyarrow as pa
   >>> import nanoarrow as na
   >>> chunked = pa.chunked_array([pa.array([0, 1, 2])])
   >>> chunked
   <pyarrow.lib.ChunkedArray object at 0x11fe99350>
   [
     [
       0,
       1,
       2
     ]
   ]
   >>> list(na.c_array_stream(chunked))
   zsh: segmentation fault  python
   ```
   
   ### Are there any user-facing changes?
   
   Yes! Working on documentation...


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