You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "MaciekChudek (via GitHub)" <gi...@apache.org> on 2023/11/17 01:21:14 UTC
[I] Collisions between column and function names cause error with inaccurate message [arrow]
MaciekChudek opened a new issue, #38755:
URL: https://github.com/apache/arrow/issues/38755
### Describe the bug, including details regarding any error messages, version, and platform.
Summarising over a set of columns, whose names include the name of the summarising functions throws an error, whose message is completely uninformative.
```
d %>% group_by(whatever) %>% summarise(across(all_of(list_of_variable_names), ~ mean(.)))
#Error: Error : object '..temp3' not found
#Call collect() first to pull data into R.
```
where # in temp# seems to be the index of the offending variable in list_of_variable_names - 1.
Easy to fix by renaming the column first, but took a while to locate the problem due to the ambiguous error message. Also, I suspect the issue could be avoided upstream by escaping or otherwise disambiguating the column and function names.
### Component(s)
R
--
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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [R] Collisions between column and function names cause error with uninformative message [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #38755:
URL: https://github.com/apache/arrow/issues/38755#issuecomment-5645586418
No longer reproducible as of Arrow 25.0.0 🎉
--
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
Re: [I] [R] Collisions between column and function names cause error with uninformative message [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
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
Re: [I] [R] Collisions between column and function names cause error with uninformative message [arrow]
Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic closed issue #38755: [R] Collisions between column and function names cause error with uninformative message
URL: https://github.com/apache/arrow/issues/38755
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org