You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Alessandro Molina (Jira)" <ji...@apache.org> on 2021/04/19 09:38:00 UTC

[jira] [Created] (ARROW-12466) Comparing array to None causes crash

Alessandro Molina created ARROW-12466:
-----------------------------------------

             Summary: 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


Seems comparing {{pyarrow}} {{Array}} to {{None}} currently causes a crash instead of returning {{False}} value
>>> 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'



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