You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2021/04/20 14:24:00 UTC
[jira] [Assigned] (ARROW-12466) [Python] Comparing array to None
causes crash
[ https://issues.apache.org/jira/browse/ARROW-12466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche reassigned ARROW-12466:
---------------------------------------------
Assignee: Alessandro Molina
> [Python] Comparing array to None causes crash
> ---------------------------------------------
>
> Key: ARROW-12466
> URL: https://issues.apache.org/jira/browse/ARROW-12466
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Alessandro Molina
> Assignee: Alessandro Molina
> Priority: Minor
> Labels: pull-request-available
> Fix For: 5.0.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Seems comparing {{pyarrow}} {{Array}} to {{None}} currently causes a crash instead of returning {{False}} value
> {code:python}
> >>> pa.array([]) == None
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "pyarrow/array.pxi", line 1037, in pyarrow.lib.Array._eq_
> except TypeError:
> File "pyarrow/array.pxi", line 1042, in pyarrow.lib.Array.equalsAttributeError: 'NoneType' object has no attribute 'ap'{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)