-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-9055: [C++] Add sum/mean/minmax kernels for Boolean type #7478
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
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.
Why isn't it 0 here?
|
I pushed some changes to the R bindings to take advantage of this. I'll note that MinMax also doesn't support boolean and probably should. |
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.
BooleanArray has no raw_values() method.
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.
So these were returning the types' extreme values.
d1a85d1 to
fbdd84f
Compare
nealrichardson
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.
From the R side, this LGTM
|
ping @wesm |
|
Looking |
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.
The min/max implementation seems more complicated / less efficient than it needs to be, and I think the unit test setup could be simplified, but otherwise this looks OK
|
@ursabot build |
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. We will have to resolve the sum([]) -> null/0 by introducing a "minimum valid values" option.
- minimum # valid values == 0 -> 0
- minimum # valid values == 1 -> null
Do we already have a JIRA to track this? EDIT -> it is mentioned in ARROW-9054 |
No description provided.