jpramil opened a new issue, #39688:
URL: https://github.com/apache/arrow/issues/39688

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Hello,
   
   Here is a repex of a bug occuring when I try to filter a dataset like 
"filter(Date == date).
   Maybe the expression "date" has a special interpretation ?
   
   Thx,
   
   ```
   library(arrow)
   library(dplyr)
   library(lubridate)
   
   # Create a simple df
   set.seed(123)
   Date <- rep(c("2022-01-01", "2022-01-02"), each = 5)
   Volume <- sample(100:200, 10, replace = TRUE)
   
   df <- tibble(
     Date = Date,
     Volume = Volume
   )
   
   # save as partitioned parquet
   temp_dir <- tempdir()
   parquet_file <- file.path(temp_dir, "example_partitioned.parquet")
   write_dataset(df, parquet_file,  partitioning =  "Date")
   
   # Lazy import
   reimported_data <- open_dataset(parquet_file)
   
   # Bug 
   date = "2022-01-02"
   reimported_data |> filter(Date == date)
   
   # Possible workaround
   my_date = "2022-01-02"
   reimported_data |> filter(Date == my_date)
   
   
   
   ```
   
   
   
   
   
   
   
   
   ### Component(s)
   
   Parquet, 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]

Reply via email to