eitsupi commented on PR #35473:
URL: https://github.com/apache/arrow/pull/35473#issuecomment-1542437044
I noticed that the column order is also wrong after `select`, but this is
beyond the scope of this pull request, so I will create another issue.
```r
> mtcars |> group_by(cyl) |> select(mpg) |> collect()
Adding missing grouping variables: `cyl`
# A tibble: 32 × 2
# Groups: cyl [3]
cyl mpg
<dbl> <dbl>
1 6 21
2 6 21
3 4 22.8
4 6 21.4
5 8 18.7
6 6 18.1
7 8 14.3
8 4 24.4
9 4 22.8
10 6 19.2
# … with 22 more rows
# ℹ Use `print(n = ...)` to see more rows
> mtcars |> arrow_table() |> group_by(cyl) |> select(mpg) |> collect()
# A tibble: 32 × 2
# Groups: cyl [3]
mpg cyl
<dbl> <dbl>
1 21 6
2 21 6
3 22.8 4
4 21.4 6
5 18.7 8
6 18.1 6
7 14.3 8
8 24.4 4
9 22.8 4
10 19.2 6
# … with 22 more rows
# ℹ Use `print(n = ...)` to see more rows
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]