Commits


Dewey Dunnington authored and GitHub committed 9753a6720da
GH-14872: [R] arrow returns wrong variable content when multiple group_by/summarise statements are used (#14905) Reprex using CRAN arrow: ``` r library(arrow, warn.conflicts = FALSE) library(dplyr, warn.conflicts = FALSE) mtcars |> arrow_table() |> select(mpg, cyl) |> group_by(mpg, cyl) |> group_by(cyl, value = "foo") |> collect() #> # A tibble: 32 × 4 #> # Groups: cyl, value [3] #> mpg cyl value `"foo"` #> <dbl> <dbl> <dbl> <chr> #> 1 21 6 6 foo #> 2 21 6 6 foo #> 3 22.8 4 4 foo #> 4 21.4 6 6 foo #> 5 18.7 8 8 foo #> 6 18.1 6 6 foo #> 7 14.3 8 8 foo #> 8 24.4 4 4 foo #> 9 22.8 4 4 foo #> 10 19.2 6 6 foo #> # … with 22 more rows ``` <sup>Created on 2022-12-09 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup> After this PR: ``` r library(arrow, warn.conflicts = FALSE) #> Some features are not enabled in this build of Arrow. Run `arrow_info()` for more information. library(dplyr, warn.conflicts = FALSE) mtcars |> arrow_table() |> select(mpg, cyl) |> group_by(mpg, cyl) |> group_by(cyl, value = "foo") |> collect() #> # A tibble: 32 × 3 #> # Groups: cyl, value [3] #> mpg cyl value #> <dbl> <dbl> <chr> #> 1 21 6 foo #> 2 21 6 foo #> 3 22.8 4 foo #> 4 21.4 6 foo #> 5 18.7 8 foo #> 6 18.1 6 foo #> 7 14.3 8 foo #> 8 24.4 4 foo #> 9 22.8 4 foo #> 10 19.2 6 foo #> # … with 22 more rows ``` <sup>Created on 2022-12-09 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup> * Closes: #14872 Authored-by: Dewey Dunnington <dewey@fishandwhistle.net> Signed-off-by: Dewey Dunnington <dewey@voltrondata.com>