[
https://issues.apache.org/jira/browse/ARROW-5208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Artem KOZHEVNIKOV updated ARROW-5208:
-------------------------------------
Description:
I would expect Int64Array type in all cases below :
{code:java}
>>> pa.array([4, None, 4, None], mask=np.array([False, True, False, True]))
>>>
>>>
<pyarrow.lib.Int64Array object at 0x91fad3a98> [4, null, 4, null ]
>>> pa.array([4, None, 4, 'rer'], mask=np.array([False, True, False, True]))
>>>
>>>
<pyarrow.lib.Int64Array object at 0x9201f23b8> [4, null, 4, null ]
>>> pa.array([4, None, 4, 3.], mask=np.array([False, True, False, True]))
>>>
>>> <pyarrow.lib.DoubleArray object at 0x91fab7638> [ 4, null, 4,
>>> null ]{code}
was:
I would expect Int64Array type in all cases below :
{code:java}
pa.array([4, None, 4, None], mask=np.array([False, True, False, True]))
<pyarrow.lib.Int64Array object at 0x91fad3a98>
[
4,
null,
4,
null
]
pa.array([4, None, 4, 'rer'], mask=np.array([False, True, False, True]))
<pyarrow.lib.Int64Array object at 0x9201f23b8>
[
4,
null,
4,
null
]
pa.array([4, None, 4, 3.], mask=np.array([False, True, False, True]))
<pyarrow.lib.DoubleArray object at 0x91fab7638> [ 4, null, 4, null
]{code}
> Inconsistent resulting type during casting in pa.array() when mask is present
> -----------------------------------------------------------------------------
>
> Key: ARROW-5208
> URL: https://issues.apache.org/jira/browse/ARROW-5208
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.13.0
> Reporter: Artem KOZHEVNIKOV
> Priority: Major
>
> I would expect Int64Array type in all cases below :
> {code:java}
> >>> pa.array([4, None, 4, None], mask=np.array([False, True, False, True]))
> >>>
> >>>
> <pyarrow.lib.Int64Array object at 0x91fad3a98> [4, null, 4, null ]
> >>> pa.array([4, None, 4, 'rer'], mask=np.array([False, True, False, True]))
> >>>
> >>>
> <pyarrow.lib.Int64Array object at 0x9201f23b8> [4, null, 4, null ]
> >>> pa.array([4, None, 4, 3.], mask=np.array([False, True, False, True]))
> >>>
> >>> <pyarrow.lib.DoubleArray object at 0x91fab7638> [ 4, null,
> >>> 4, null ]{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)