You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2020/03/23 13:46:00 UTC

[jira] [Created] (ARROW-8186) [Python] Dataset expression != returns bool instead of expression for invalid value

Joris Van den Bossche created ARROW-8186:
--------------------------------------------

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


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)