Skip to content

[R] [C++] Allow min/max in grouped aggregation #29694

@asfimport

Description

@asfimport

Both min() and max() work in non-grouped aggregation and elsewhere, but with a grouped aggregation, we get a not-supported error:

> 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

Reporter: Jonathan Keane / @jonkeane

Related issues:

Note: This issue was originally created as ARROW-14103. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions