Uh oh!
There was an error while loading. Please reload this page.
ARROW-9054: [C++] Add ScalarAggregateOptions - #9758
Conversation
rok
commented
Mar 21, 2021
As per comments in Jiras this should introduce the following:
|
d210140 to
97c78d6Comparec71b1f8 to
6e89d74Comparenealrichardson
commented
Apr 12, 2021
Should MinMax be updated to use ScalarAggregateOptions? You should also be able to remove https://github.com/apache/arrow/blob/master/r/R/compute.R#L113-L117 and search for any other references to that jira number in the R code/tests. |
rok
commented
Apr 13, 2021
I'll look into it. Count would be a candidate as well.
Will do. |
rok
commented
Apr 15, 2021
This is slowly coming together. Remaining todo:
|
jorisvandenbossche
commented
Apr 15, 2021
Is this desired behaviour? I think in general the resulting data type should be known based on the input types and operation (and not depend on the values) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Just to make sure I am reading this one correctly, is it basically testing mean([], min_count=0) == 0 ?
I am not sure that should give 0 as result? I would have expected either NaN or Null.
Basically mean of empty is dividing 0/0, which is NaN.
There was a problem hiding this comment.
Agreed. I think I've put it there to have it documented while I was changing other things.
There was a problem hiding this comment.
It seems you changed it to return null now? Should it rather return NaN? (I assume it could be consistent with a manual mean from sum/count with min_count=0)
jorisvandenbossche
commented
Apr 15, 2021
Looking forward to this! Added a few comments on naming and exact expected semantics. |
85e8bf0 to
1478720Comparerok
commented
Apr 16, 2021
This requires some more work on C Glib but is ready for review otherwise. |
rok
commented
Apr 16, 2021
@jorisvandenbossche & @nealrichardson could you take a look at this proposal? |
Should we introduce |
40f5e49 to
ce22f1aCompareCo-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
* Fix typos * Improve styles * Add more tests
rok
commented
May 20, 2021
Some checks timed out. Rebased to restart the tasks. |
kou
commented
May 21, 2021
The "R / AMD64 Windows RTools 35" failure was occurred on master too: https://github.com/apache/arrow/runs/2634288057 It's unrelated to this. I'll merge this. |
rok
commented
May 21, 2021
Thanks for the help everyone! |
ARROW-9054.
This adds
ScalarAggregateOptionsto control null behavior ofmeanandsumkernels.