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/05/03 11:49:00 UTC

[jira] [Comment Edited] (ARROW-12613) [Python] AttributeError when comparing a Scalar with None

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

Joris Van den Bossche edited comment on ARROW-12613 at 5/3/21, 11:48 AM:
-------------------------------------------------------------------------

[~mosalx] thanks for the report. Such a comparison should not raise an error, but I think return False instead (or at least give a more informative error message)

cc [~amol-]  a similar case as ARROW-12466 (but not segfaulting), but when comparing with a scalar and not array in this case.


was (Author: jorisvandenbossche):
cc [~amol-]  a similar case as ARROW-12466 (but not segfaulting), but when comparing with a scalar and not array in this case.

> [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
>
> {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)