[ 
https://issues.apache.org/jira/browse/ARROW-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360831#comment-16360831
 ] 

ASF GitHub Bot commented on ARROW-2129:
---------------------------------------

wesm commented on a change in pull request #1588: ARROW-2129: [Python] Handle 
conversion of empty tables to Pandas
URL: https://github.com/apache/arrow/pull/1588#discussion_r167577620
 
 

 ##########
 File path: cpp/src/arrow/python/arrow_to_pandas.cc
 ##########
 @@ -280,6 +280,9 @@ class PandasBlock {
 
 template <typename T>
 inline const T* GetPrimitiveValues(const Array& arr) {
+  if (arr.length() == 0) {
 
 Review comment:
   There's no policy per se, but since there are more of us working on this 
codebase now, we should be more diligent about explaining what internal APIs 
are doing in comments

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [Python] Segmentation fault on conversion of empty array to Pandas
> ------------------------------------------------------------------
>
>                 Key: ARROW-2129
>                 URL: https://issues.apache.org/jira/browse/ARROW-2129
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.8.0
>            Reporter: Uwe L. Korn
>            Assignee: Uwe L. Korn
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.9.0
>
>
> Converting an empty {{pyarrow.Array}} to a Pandas series causes a 
> segmentation fault.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to