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

Alessandro Molina commented on ARROW-12613:
-------------------------------------------

I can confirm the issue is the same for Scalar values and I also verified that 
we are not having the same issue for other kind of arrays. It seems that for 
all Array subclasses comparing to {{None}} is correctly handled and for 
{{ChunkedArray}} too is correctly handled. So the problem seem to be limited to 
scalars in term of comparing arrays and their content.

> [Python] AttributeError when comparing a Scalar with None
> ---------------------------------------------------------
>
>                 Key: ARROW-12613
>                 URL: https://issues.apache.org/jira/browse/ARROW-12613
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 4.0.0
>         Environment: Windows 10
> python=3.9.2
> pyarrow=4.0.0
>            Reporter: Sergey Mozharov
>            Priority: Major
>             Fix For: 5.0.0
>
>
> {code:java}
> import pyarrow as pa
> arr = pa.array([1, 2])
> arr[0] == None  # -> AttributeError: 'NoneType' object has no attribute 
> 'unwrap'
> {code}



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

Reply via email to