-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-5854: [Python] Expose compare kernels on Array class #7273
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
ARROW-5854: [Python] Expose compare kernels on Array class #7273
Conversation
|
I wanted to add the same to ChunkedArray, but it seems that for ChunkedArray we already defined Is that something we want to (hard) break? |
|
@jorisvandenbossche I'm OK with changing |
python/pyarrow/array.pxi
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe factor this out into a helper function to avoid the code duplication?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the op to function name conversion into a helper function
python/pyarrow/tests/test_compute.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a JIRA about adding a pyarrow.scalar function (in order to do pa.scalar(2) here)?
python/pyarrow/tests/test_compute.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a case to show comparing with a null scalar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not directly sure how to create an actual null scalar (the pa.array([None]).sum() trick doesn't work, because the sum or minmax kernel is not implemented for null type)
142a4fd to
e1623b3
Compare
|
Updated to add the comparison ops to ChunkedArray as well |
wesm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. The CI failure is ARROW-8999, I've seen it in other PRs so don't think it's related to this
No description provided.