You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/03/23 13:46:00 UTC
[jira] [Updated] (ARROW-8186) [Python] Dataset expression !=
returns bool instead of expression for invalid value
[ https://issues.apache.org/jira/browse/ARROW-8186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche updated ARROW-8186:
-----------------------------------------
Description:
It's a bit a strange case, but eg when doing {{!= \{3\}}} you get a boolean result instead of an expression:
{code}
In [8]: ds.field('col') != 3
Out[8]: <pyarrow.dataset.ComparisonExpression (col != 3:int64)>
In [9]: ds.field('col') != {3}
Out[9]: True
{code}
was:
It's a bit a strange case, but eg when doing {{!= {3}}} you get a boolean result instead of an expression:
{code}
In [8]: ds.field('col') != 3
Out[8]: <pyarrow.dataset.ComparisonExpression (col != 3:int64)>
In [9]: ds.field('col') != {3}
Out[9]: True
{code}
> [Python] Dataset expression != returns bool instead of expression for invalid value
> -----------------------------------------------------------------------------------
>
> Key: ARROW-8186
> URL: https://issues.apache.org/jira/browse/ARROW-8186
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Joris Van den Bossche
> Priority: Major
>
> It's a bit a strange case, but eg when doing {{!= \{3\}}} you get a boolean result instead of an expression:
> {code}
> In [8]: ds.field('col') != 3
> Out[8]: <pyarrow.dataset.ComparisonExpression (col != 3:int64)>
> In [9]: ds.field('col') != {3}
> Out[9]: True
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)