Skip to content

[BUG] ArrowExtensionArray arithmetic ops succeed instead of raising with cudf.pandas on #20429

@Matt711

Description

@Matt711

Steps/Code to reproduce bug

%load_ext cudf.pandas
import pandas as pd

s = pd.Series(pd.array([True, False, True, None], dtype="bool[pyarrow]"))
other = pd.Series(pd.array([True] * len(s), dtype="bool[pyarrow]"))

out = s + other
print(out)
0    True
1    True
2    True
3    <NA>
dtype: bool[pyarrow]

With cudf.pandas turned off

TypeError: operation 'add' not supported for dtype 'bool[pyarrow]' with dtype 'bool[pyarrow]

Expected behavior
Responsible for ~400 pytest failures

Metadata

Metadata

Assignees

Labels

PythonAffects Python cuDF API.bugSomething isn't workingcudf.pandasIssues specific to cudf.pandas

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions