Skip to content

Conversation

@kszucs
Copy link
Member

@kszucs kszucs commented Jun 18, 2020

No description provided.

@github-actions
Copy link

Copy link
Member

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?

@nealrichardson
Copy link
Member

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.

@kszucs kszucs changed the title ARROW-9055: [C++] Add sum/mean kernels for Boolean type ARROW-9055: [C++] Add sum/mean/minmax kernels for Boolean type Jun 19, 2020
Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Member

@nealrichardson nealrichardson left a 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

@kszucs kszucs requested a review from wesm June 22, 2020 09:38
@kszucs
Copy link
Member Author

kszucs commented Jun 24, 2020

ping @wesm

@wesm
Copy link
Member

wesm commented Jun 24, 2020

Looking

Copy link
Member

@wesm wesm left a 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

@kszucs
Copy link
Member Author

kszucs commented Jun 26, 2020

@ursabot build

Copy link
Member

@wesm wesm left a 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

@wesm wesm closed this in db719ff Jul 1, 2020
@jorisvandenbossche
Copy link
Member

jorisvandenbossche commented Jul 1, 2020

We will have to resolve the sum([]) -> null/0 by introducing a "minimum valid values" option.

Do we already have a JIRA to track this?

EDIT -> it is mentioned in ARROW-9054

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants