Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14103

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 6.0.0
    • C++, R
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jonkeane Jonathan Keane
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: