kylebarron commented on issue #40648:
URL: https://github.com/apache/arrow/issues/40648#issuecomment-2008587961

   > for me this is like `pyarrow.array()` returning either a `ChunkedArray` or 
an `Array`: it just doesn't know until it sees the input what type it needs to 
unambiguously represent it.
   
   Does `pyarrow.array` ever return a `ChunkedArray`? I tried to pass in a list 
of lists and it inferred a `ListArray`. I thought `pyarrow.array` only ever 
returned an `Array` and `pyarrow.chunked_array` only ever returned a 
`ChunkedArray`?
   
   > For something like an `Array` or `RecordBatch` (or something like a 
`numpy` array) that is definitely Arrow and is definitely contiguous, I am not 
sure what the benefit would be for `__arrow_c_stream__` to exist and it is 
probably just confusing if it does.
   
   So your argument is that `Array` should never have `__arrow_c_stream__`, but 
that `ChunkedArray` should have both `__arrow_c_array__` and 
`__arrow_c_stream__`?


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