edponce commented on issue #11523:
URL: https://github.com/apache/arrow/issues/11523#issuecomment-949974576


   You still can access the data (`ArrayData`) as follows:
   ```python
   def get_array_length(obj):
       cdef:
           shared_ptr[CRecordBatch] record = pyarrow_unwrap_batch(obj)
           shared_ptr[CArray] array
           shared_ptr[CArrayData] data
       if record.get() == NULL:
           raise TypeError("not a batch")
       array = record.get().column(1)
       data = array.get().data()
       return data.length
   ```


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