r2evans opened a new issue, #47980:
URL: https://github.com/apache/arrow/issues/47980
### Describe the bug, including details regarding any error messages,
version, and platform.
When columns are renamed (I'm using `tolower` here) and another object is
referenced with the same renamed field, the filtering does not work.
```r
arr <- arrow_table(data.frame(Quux = LETTERS)) |> to_duckdb()
ltr <- list(Quux="A")
arr |> filter(Quux == ltr$Quux) |> collect()
# # A tibble: 1 × 1
# Quux
# <chr>
# 1 A
arr |> rename_with(.fn = tolower) |> filter(quux == ltr$Quux) |> collect()
# # A tibble: 1 × 1
# quux
# <chr>
# 1 A
ltr <- list(quux="A")
arr |> filter(Quux == ltr$quux) |> collect()
# # A tibble: 1 × 1
# Quux
# <chr>
# 1 A
arr |> rename_with(.fn = tolower) |> filter(quux == ltr$quux) |> collect()
# # A tibble: 0 × 1
# # ℹ 1 variable: quux <chr>
arr |> rename_with(.fn = tolower) |> filter(quux == "A") |> collect()
# # A tibble: 1 × 1
# quux
# <chr>
# 1 A
```
It looks as if the symbol-finding is a little over-eager.
<details><summary>session info</summary>
```r
> xfun::session_info(c("arrow", "duckdb"))
R version 4.4.3 (2025-02-28)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.7.1
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 /
en_US.UTF-8
Package version:
arrow_21.0.0.1 assertthat_0.2.1 bit_4.5.0.1 bit64_4.6.0.1
cli_3.6.5 cpp11_0.5.2 DBI_1.2.3 duckdb_1.4.1 glue_1.8.0
graphics_4.4.3 grDevices_4.4.3 lifecycle_1.0.4 magrittr_2.0.4
methods_4.4.3 purrr_1.1.0 R6_2.6.1 rlang_1.1.6 stats_4.4.3
tidyselect_1.2.1 tools_4.4.3 utils_4.4.3 vctrs_0.6.5
withr_3.0.2
```
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]