Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python][Acero] RecordBatch.filter on expression raises error if result set is empty #44366

Open
wlhjason opened this issue Oct 10, 2024 · 0 comments

Comments

@wlhjason
Copy link

Describe the bug, including details regarding any error messages, version, and platform.

Example (tested with pyarrow 17.0.0):

import pyarrow as pa
import pyarrow.compute as pc

pa.record_batch({"number": [1, 2, 3]}).filter(pc.field("number") < 0)

leads to

IndexError: list index out of range

on this line in arrow/python/pyarrow/acero.py: https://github.com/apache/arrow/blob/maint-17.0.0/python/pyarrow/acero.py#L371

Component(s)

Python

@wlhjason wlhjason changed the title [Python][Acero] RecordBatch.filter raises error if result set is empty [Python][Acero] RecordBatch.filter on expression raises error if result set is empty Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant