[
https://issues.apache.org/jira/browse/ARROW-9490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramakrishna Prabhu updated ARROW-9490:
--------------------------------------
Description:
While creating array from a list of numpy scalars, pyarrow fails with message
'Integer scalar type not recognized', details below
{code:java}
>>> import pyarrow as pa >>> import numpy as np
>>> pa.array([np.int32(4), np.float64(1.5), np.float32(1.290994), np.int8(0)])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow/array.pxi", line 269, in pyarrow.lib.array
File "pyarrow/array.pxi", line 38, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Integer scalar type not recognized
{code}
was:
While creating array from a list of numpy scalars, pyarrow fails with message
'Integer scalar type not recognized', details below
{code:java}
// code placeholder{code}
>>> import pyarrow as pa
>>> import numpy as np
>>> pa.array([np.int32(4), np.float64(1.5), np.float32(1.290994), np.int8(0)])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow/array.pxi", line 269, in pyarrow.lib.array
File "pyarrow/array.pxi", line 38, in pyarrow.lib._sequence_to_array
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Integer scalar type not recognized
> pyarrow array creation for specific set of numpy scalars fails
> --------------------------------------------------------------
>
> Key: ARROW-9490
> URL: https://issues.apache.org/jira/browse/ARROW-9490
> Project: Apache Arrow
> Issue Type: Bug
> Environment: conda
> Reporter: Ramakrishna Prabhu
> Priority: Major
>
> While creating array from a list of numpy scalars, pyarrow fails with message
> 'Integer scalar type not recognized', details below
> {code:java}
> >>> import pyarrow as pa >>> import numpy as np
> >>> pa.array([np.int32(4), np.float64(1.5), np.float32(1.290994), np.int8(0)])
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "pyarrow/array.pxi", line 269, in pyarrow.lib.array
> File "pyarrow/array.pxi", line 38, in pyarrow.lib._sequence_to_array
> File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
> pyarrow.lib.ArrowInvalid: Integer scalar type not recognized
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)