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] Add is_nan, is_null, is_valid as operators to DNF filters #38750

Open
JacekPliszka opened this issue Nov 16, 2023 · 1 comment · May be fixed by #38774
Open

[Python] Add is_nan, is_null, is_valid as operators to DNF filters #38750

JacekPliszka opened this issue Nov 16, 2023 · 1 comment · May be fixed by #38774

Comments

@JacekPliszka
Copy link
Contributor

JacekPliszka commented Nov 16, 2023

Describe the enhancement requested

Currently pyarrow.parquet.core.filters_to_expression handles equality/inequality operators and in and not in operators.

I propose adding is_nan, is_null, is_valid operators where value passed would be ignored but they would
return field.is_nan() field.is_null() field.is_valid() expressions.

This is a very easy change but it would allow null/nan filtering in DNF form.
These functions are already implemented for pyarrow.dataset.Expression https://arrow.apache.org/docs/python/generated/pyarrow.dataset.Expression.html

Component(s)

Python

JacekPliszka added a commit to JacekPliszka/arrow that referenced this issue Nov 18, 2023
JacekPliszka added a commit to JacekPliszka/arrow that referenced this issue Nov 18, 2023
…pache#38774)

Adding is_nan, is_null and is_valid operators to DNF filter expression.
@JacekPliszka JacekPliszka changed the title Add is_nan, is_null, is_valid as operators to DNF filters [Python] Add is_nan, is_null, is_valid as operators to DNF filters Nov 18, 2023
@davlee1972
Copy link

I added a bunch here with a DNF function.. “is” and “is not” operators support is None, is True, is False, is not None, is not True, etc..

#39128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants