You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "thisisnic (via GitHub)" <gi...@apache.org> on 2023/11/17 07:07:26 UTC
Re: [I] [R] Collisions between column and function names cause error with uninformative message [arrow]
thisisnic commented on issue #38755:
URL: https://github.com/apache/arrow/issues/38755#issuecomment-1815844582
Thanks for reporting this, can confirm it's reproducible; here's a reprex:
``` r
library(dplyr)
library(arrow)
tbl <- arrow_table(mean = 1:10, group_var = rep(c("a", "b"), 5))
tbl %>%
group_by(group_var) %>%
summarise(across(all_of("mean"), ~ mean(.)))
#> Warning: Error in eval_tidy(expr, mask) : object '..temp0' not found; pulling
#> data into R
#> # A tibble: 2 × 2
#> group_var mean
#> <chr> <dbl>
#> 1 a 5
#> 2 b 6
```
This reprex shows it's not just limited to `across()` contexts:
``` r
library(dplyr)
library(arrow)
tbl <- arrow_table(mean = 1:10, group_var = rep(c("a", "b"), 5))
tbl %>%
group_by(group_var) %>%
summarise(mean(mean))
#> Warning: Error in eval_tidy(expr, mask) : object '..temp0' not found; pulling
#> data into R
#> # A tibble: 2 × 2
#> group_var `mean(mean)`
#> <chr> <dbl>
#> 1 a 5
#> 2 b 6
```
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org