thisisnic commented on issue #46636: URL: https://github.com/apache/arrow/issues/46636#issuecomment-2921964754
Oops, my bad, it was a trimmed down version of a bigger reprex, thanks for highlighting that! Confirmed the same behaviour: ``` r library(arrow) library(dplyr) code <- ' pattern = "a" arrow_df <- arrow_table(x = c("a", "b", "c")) arrow_df |> mutate(x2 = case_when(pattern == "a" ~ "foo")) |> collect() ' tf <- tempfile(fileext = ".R") writeLines(code, tf) source(tf, local = new.env()) #> Error in `case_when()`: #> ! object 'pattern' not found ``` -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org