AlenkaF commented on PR #34456:
URL: https://github.com/apache/arrow/pull/34456#issuecomment-1455702755

   Thank you @phofl for contributing!
   
   As I mentioned in the issue comments, there is already a PR for a duplicated 
GitHub issue: https://github.com/apache/arrow/pull/34289
   
   As you can see in the comments of the duplicated PR issue 
https://github.com/apache/arrow/issues/33727#issuecomment-1387323624, the 
failure happens because `pa.DictionaryArray.from_array` doesn't accept chunked 
arrays. In this case, the ChunkedArray will always have only one chunk and so a 
better way of solving the issue is to return an array in case of single chunked 
data when calling `_handle_arrow_array_protocol` (`__arrow_array__`).


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