-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-13311: [C++][Documentation] Document hash aggregate kernels #10887
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
Conversation
5e8e39a to
fd03cc7
Compare
|
Thanks for doing this @lidavidm! Could you rebase to fix the conflict then request a review? Thanks! |
pitrou
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.
Thank you very much! Just a couple comments/questions.
|
I pushed a number of minor changes. @nealrichardson @ianmcook Can you give this the final go when you're fine with the changes? |
Co-authored-by: Ian Cook <ianmcook@gmail.com>
Co-authored-by: Ian Cook <ianmcook@gmail.com>
Co-authored-by: Ian Cook <ianmcook@gmail.com>
ianmcook
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.
LGTM! Thanks David and Antoine
docs/source/cpp/compute.rst
Outdated
| | hash_all | Unary | Boolean | Int64 | :struct:`ScalarAggregateOptions` | \(1) | | ||
| +---------------+-------+-------------+----------------+----------------------------------+-------+ | ||
| | hash_any | Unary | Any | Int64 | :struct:`ScalarAggregateOptions` | \(1) | |
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.
| | hash_all | Unary | Boolean | Int64 | :struct:`ScalarAggregateOptions` | \(1) | | |
| +---------------+-------+-------------+----------------+----------------------------------+-------+ | |
| | hash_any | Unary | Any | Int64 | :struct:`ScalarAggregateOptions` | \(1) | | |
| | hash_all | Unary | Boolean | Boolean | :struct:`ScalarAggregateOptions` | \(1) | | |
| +---------------+-------+-------------+----------------+----------------------------------+-------+ | |
| | hash_any | Unary | Boolean | Boolean | :struct:`ScalarAggregateOptions` | \(1) | |
?
At least, the non-hash versions of any/all only work on boolean input, and return booleans (didn't check for the hashed version)
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.
Ah you're right, I probably forgot to fix it up after copy-paste. I've fixed these rows (+ hash_count).



This adds a section about hash aggregates. Also, adds Kleene logic to the hash any/all kernels.