[
https://issues.apache.org/jira/browse/ARROW-14103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ian Cook closed ARROW-14103.
----------------------------
Fix Version/s: 6.0.0
Resolution: Duplicate
> [R] [C++] Allow min/max in grouped aggregation
> ----------------------------------------------
>
> Key: ARROW-14103
> URL: https://issues.apache.org/jira/browse/ARROW-14103
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, R
> Reporter: Jonathan Keane
> Priority: Major
> Fix For: 6.0.0
>
>
> Both {{min()}} and {{max()}} work in non-grouped aggregation and elsewhere,
> but with a grouped aggregation, we get a not-supported error:
> {code}
> > library(arrow)
> > library(dplyr)
> >
> > InMemoryDataset$create(mtcars) %>%
> + group_by(cyl) %>%
> + summarise(min_mpg = min(mpg))
> Warning: Error : Expression min(mpg) not supported in Arrow; pulling data
> into R
> # A tibble: 3 × 2
> cyl min_mpg
> <dbl> <dbl>
> 1 4 21.4
> 2 6 17.8
> 3 8 10.4
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)