eitsupi commented on PR #14093:
URL: https://github.com/apache/arrow/pull/14093#issuecomment-1373652188
> There's still one failing test related to the "roll" behaviour. Basically,
lubridate doesn't support the way that Arrow can handle this case (the clock
package can support both).
Maybe `roll_dst = c("boundary", "post")` ?
``` r
library(dplyr, warn.conflicts = FALSE)
nonexistent <- lubridate::as_datetime(c(
"2015-03-29 02:30:00",
"2015-03-29 03:30:00"
), tz = "UTC")
tibble::tibble(timestamp = nonexistent) |>
mutate(rolled = lubridate::force_tz(timestamp, "Europe/Brussels", roll_dst
= c("boundary", "post"))) |>
collect()
#> # A tibble: 2 × 2
#> timestamp rolled
#> <dttm> <dttm>
#> 1 2015-03-29 02:30:00 2015-03-29 03:00:00
#> 2 2015-03-29 03:30:00 2015-03-29 03:30:00
```
<sup>Created on 2023-01-06 with [reprex
v2.0.2](https://reprex.tidyverse.org)</sup>
--
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]