[jira] [Resolved] (ARROW-11412) [Python] Expression evaluation problem for logical boolean expressions (and, or, not)
[ https://issues.apache.org/jira/browse/ARROW-11412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joris Van den Bossche resolved ARROW-11412. --- Resolution: Fixed Issue resolved by pull request 9352 [https://github.com/apache/arrow/pull/9352] > [Python] Expression evaluation problem for logical boolean expressions (and, > or, not) > - > > Key: ARROW-11412 > URL: https://issues.apache.org/jira/browse/ARROW-11412 > Project: Apache Arrow > Issue Type: Bug > Components: Python >Affects Versions: 2.0.0, 3.0.0 >Reporter: Roman Karlstetter >Assignee: Joris Van den Bossche >Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 1.5h > Remaining Estimate: 0h > > There's a problem with boolean "and", "or" and "not" expressions when > creating them in python (or I'm doing something completely stupid). > > {code:java} > >>> import pyarrow > >>> pyarrow.__version__ > '3.0.0' > >>> import pyarrow.dataset as ds > >>> ds. scalar(False) and ds.scalar(True) # <--- I expect false > > >>> ds.scalar(True) and ds.scalar(False) # this works > > >>> ds.scalar(True) or ds.scalar(False) # this works > > >>> ds.scalar(False) or ds.scalar(True) # <--- I expect true > > >>> not ds.scalar(True) # this works > >>> > >>> > >>> > False > > > >>> not ds.scalar(False) <--- I expect true > >>> > >>> > >>> > False > {code} > I tried to figure out what goes wrong here, but there are no obvious problems > in the python code, same for C++ (but I didn't quite understand everything of > it yet). > > This happens with pyarrow3 and pyarrow2 > > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Resolved] (ARROW-11412) [Python] Expression evaluation problem for logical boolean expressions (and, or, not)
[ https://issues.apache.org/jira/browse/ARROW-11412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joris Van den Bossche resolved ARROW-11412. --- Fix Version/s: 4.0.0 Resolution: Fixed Issue resolved by pull request 9351 [https://github.com/apache/arrow/pull/9351] > [Python] Expression evaluation problem for logical boolean expressions (and, > or, not) > - > > Key: ARROW-11412 > URL: https://issues.apache.org/jira/browse/ARROW-11412 > Project: Apache Arrow > Issue Type: Bug > Components: Python >Affects Versions: 2.0.0, 3.0.0 >Reporter: Roman Karlstetter >Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 1h 20m > Remaining Estimate: 0h > > There's a problem with boolean "and", "or" and "not" expressions when > creating them in python (or I'm doing something completely stupid). > > {code:java} > >>> import pyarrow > >>> pyarrow.__version__ > '3.0.0' > >>> import pyarrow.dataset as ds > >>> ds. scalar(False) and ds.scalar(True) # <--- I expect false > > >>> ds.scalar(True) and ds.scalar(False) # this works > > >>> ds.scalar(True) or ds.scalar(False) # this works > > >>> ds.scalar(False) or ds.scalar(True) # <--- I expect true > > >>> not ds.scalar(True) # this works > >>> > >>> > >>> > False > > > >>> not ds.scalar(False) <--- I expect true > >>> > >>> > >>> > False > {code} > I tried to figure out what goes wrong here, but there are no obvious problems > in the python code, same for C++ (but I didn't quite understand everything of > it yet). > > This happens with pyarrow3 and pyarrow2 > > -- This message was sent by Atlassian Jira (v8.3.4#803005)