AlenkaF commented on code in PR #50561:
URL: https://github.com/apache/arrow/pull/50561#discussion_r4739896279
##########
python/pyarrow/table.pxi:
##########
Review Comment:
Would it make sense to delegate single chunks to the Array method, like so?
```python
if self.num_chunks == 1:
return self.chunk(0).__array__(dtype, copy)
```
This way we would not need to guard for double copy and also we would be
able to pass copy=False flag for single chunks (primitive) without nulls while
it currently errors with ValueError.
##########
python/pyarrow/table.pxi:
##########
Review Comment:
This line can be removed now or updated so that this holds only for
ChunkedArrays with more than 1 chunk (if we delegate single chunks to Array
method).
--
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]