You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Vyacheslav (Jira)" <ji...@apache.org> on 2021/03/19 15:24:00 UTC

[jira] [Comment Edited] (ARROW-10833) [Python] Avoid usage of NumPy's PyArray_DescrCheck macro

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

Vyacheslav edited comment on ARROW-10833 at 3/19/21, 3:23 PM:
--------------------------------------------------------------

Hi [~uwe] ,

Can this issue be also fixed for pyarrow 2.0.0?

We use this package for Intel sdc and cannot migrate to pyarrow 3.0.0 version right now. Currently this is blocking us.

Simpler reproducer is:
{code:java}
python -m pip install pyarrow==2.0.0 numpy
python
>>> import pyarrow
>>> pyarrow.from_numpy_dtype(int)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyarrow/types.pxi", line 2544, in pyarrow.lib.from_numpy_dtype
  File "pyarrow/error.pxi", line 107, in pyarrow.lib.check_status
pyarrow.lib.ArrowTypeError: Did not pass numpy.dtype object{code}
 


was (Author: vyacheslav.s.smirnov):
Hi,

Can this issue be also fixed for pyarrow 2.0.0?

We use this package for Intel sdc and cannot migrate to pyarrow 3.0.0 version right now. Currently this is blocking us.

Simpler reproducer is:
{code:java}
python -m pip install pyarrow==2.0.0 numpy
python
>>> import pyarrow
>>> pyarrow.from_numpy_dtype(int)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyarrow/types.pxi", line 2544, in pyarrow.lib.from_numpy_dtype
  File "pyarrow/error.pxi", line 107, in pyarrow.lib.check_status
pyarrow.lib.ArrowTypeError: Did not pass numpy.dtype object{code}
 

> [Python] Avoid usage of NumPy's PyArray_DescrCheck macro
> --------------------------------------------------------
>
>                 Key: ARROW-10833
>                 URL: https://issues.apache.org/jira/browse/ARROW-10833
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 2.0.0
>            Reporter: Uwe Korn
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> This is faulty in old versions and this will lead to a lot of issues with the upcoming numpy 1.20 release.



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