You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Alessandro Molina (Jira)" <ji...@apache.org> on 2021/04/19 09:39:00 UTC
[jira] [Updated] (ARROW-12466) Comparing array to None causes crash
[ https://issues.apache.org/jira/browse/ARROW-12466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Molina updated ARROW-12466:
--------------------------------------
Description:
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}
was:
Seems comparing {{pyarrow}} {{Array}} to {{None}} currently causes a crash instead of returning {{False}} value
{code:java}
>>> 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}
> 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
> Priority: Minor
>
> 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)