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

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

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

 ##########
 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:
   Unrelated to this PR, but is there a policy on documenting/commenting 
internal functions?

----------------------------------------------------------------
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:
us...@infra.apache.org


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