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

Joris Van den Bossche commented on ARROW-12672:
-----------------------------------------------

[~yibocai] I was also just looking into it, and the underlying reason is 1) 
that "fill_null" doesn't properly set null_count to 0 if known, and 2) the 
casting PropagateNulls cannot handle such malformed ArrayData with 
null_count=-1 but no nulls buffer. Similar to ARROW-9380 (for filter, 
https://github.com/apache/arrow/pull/7698/)



> segfault after `pa.Array.fill_null()`
> -------------------------------------
>
>                 Key: ARROW-12672
>                 URL: https://issues.apache.org/jira/browse/ARROW-12672
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 4.0.0
>            Reporter: Adam Hooper
>            Assignee: Yibo Cai
>            Priority: Major
>
> The array returned by {{pa.Array.fill_null()}} is unusable.
> {code}
> >>> import pyarrow as pa
> >>> arr = pa.array([None], pa.bool_()).fill_null(False)
> >>> arr.cast(pa.int8())
> Segmentation fault (core dumped)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to