You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Python] pyarrow.array segfaults when passed masked array with shrunken mask #17085
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.
ifisinstance(values, np.ma.MaskedArray):
ifmaskisnotNone:
raiseValueError("Cannot pass a numpy masked array and ""specify a mask at the same time")
else:
mask=values.maskvalues=values.data
Wes McKinney / @wesm:
I don't think the numpy.ma path has seen a lot of use (because numpy.ma is not widely used) so it doesn't surprise me that there are some issues like this
Wes McKinney / @wesm:
I think it's fine for us to "unbox" them into Arrow format. I wouldn't recommend building applications based on them nowadays since the level of support / compatibility in other projects is low.
Activity
asfimport commentedon Mar 13, 2020
Wes McKinney / @wesm:
I don't think the
numpy.mapath has seen a lot of use (becausenumpy.mais not widely used) so it doesn't surprise me that there are some issues like thisasfimport commentedon Mar 13, 2020
Daniel Nugent / @nugend:
Put up a PR. Independent of the big: if masked arrays are not widely used, does that mean they should be avoided?
asfimport commentedon Mar 13, 2020
Wes McKinney / @wesm:
I think it's fine for us to "unbox" them into Arrow format. I wouldn't recommend building applications based on them nowadays since the level of support / compatibility in other projects is low.
asfimport commentedon Mar 17, 2020
Joris Van den Bossche / @jorisvandenbossche:
Issue resolved by pull request 6612
#6612