[
https://issues.apache.org/jira/browse/ARROW-8105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Krisztian Szucs reassigned ARROW-8105:
--------------------------------------
Assignee: Daniel Nugent
> [Python] pyarrow.array segfaults when passed masked array with shrunken mask
> ----------------------------------------------------------------------------
>
> Key: ARROW-8105
> URL: https://issues.apache.org/jira/browse/ARROW-8105
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Daniel Nugent
> Assignee: Daniel Nugent
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.17.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> {code:python}
> >>> import numpy as np, pyarrow as pa
> >>> pa.array(np.ma.array([0]))
> {code}
> I *think* the issue might be here because when the masked array has a
> shrunken mask, it's values is False rather than the boolean mask array.
> {code:python}
> if isinstance(values, np.ma.MaskedArray):
> if mask is not None:
> raise ValueError("Cannot pass a numpy masked array and "
> "specify a mask at the same time")
> else:
> mask = values.mask
> values = values.data
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)