-
Hi Kirill, your package is great 👏 what's the timeframe for implementation of timestamp support? tibble(timestamp = now()) %>%
as_duckdb_tibble()
#> Error in `check_df_for_rel()`:
#> ! Can't convert column `timestamp` to relational. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Thanks. This is what happens when I run the code on my machine: tibble(timestamp = now()) %>%
as_duckdb_tibble()
#> Error in tibble(timestamp = now()) %>% as_duckdb_tibble(): could not find function "%>%" Created on 2025-05-01 with reprex v2.1.1 I know where the pipe and |
Beta Was this translation helpful? Give feedback.
-
Sorry Kirill. I thought it was evident: |
Beta Was this translation helpful? Give feedback.
-
Thanks. I can run it now: tibble::tibble(timestamp = lubridate::now()) |>
duckplyr::as_duckdb_tibble()
#> Error in `check_df_for_rel()` at duckplyr/R/relational-duckdb.R:120:3:
#> ! Can't convert column `timestamp` to relational. Created on 2025-05-01 with reprex v2.1.1 Just curious: why does using the reprex package seem so difficult? Checking what dput(lubridate::now())
#> structure(1746129544.63473, class = c("POSIXct", "POSIXt"), tzone = "") Created on 2025-05-01 with reprex v2.1.1 The following works today: tibble::tibble(timestamp = lubridate::now(tzone = "UTC")) |>
duckplyr::as_duckdb_tibble()
#> # A duckplyr data frame: 1 variable
#> timestamp
#> <dttm>
#> 1 2025-05-01 19:59:54 Created on 2025-05-01 with reprex v2.1.1 If we allow the current time zone (which happens when |
Beta Was this translation helpful? Give feedback.
-
Sorry. I hadn't realized the problem actually stemmed from that previous DuckDB limitation. Do you think it's prudent to expand the error message displayed by duckplyr to inform that "only UTC timestamps can be used"? |
Beta Was this translation helpful? Give feedback.
Thanks. I can run it now:
Created on 2025-05-01 with reprex v2.1.1
Just curious: why does using the reprex package seem so difficult?
Checking what
now()
is doing:Created on 2025-05-01 with reprex v2.1.1
The following works today: