You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using dplyr and dbplyr, it's possible to work around missing function translations by calling duckdb functions directly, or by writing macros that can do the translation.
Here's how I might quickly do something like that.
require(dplyr)
require(duckdb)
con <- dbConnect(duckdb())
dbSendStatement(con, 'create or replace macro TIMESTWO (x) as x::NUMERIC*2.0;')
out <- copy_to(con, iris, overwrite = T) %>%
mutate(y = TIMESTWO(Sepal.Length)) %>%
collect()
I run into fallback situations pretty quickly with duckplyr, and it would be nice to be able to write macros or adjust my code to work around them. If possible, could you please share an example of how I might do something like the above in duckplyr for my R session? I've been attempting to do this with relexpr_set_alias and to_duckdb_expr, but I haven't been making much progress.
The text was updated successfully, but these errors were encountered:
Using dplyr and dbplyr, it's possible to work around missing function translations by calling duckdb functions directly, or by writing macros that can do the translation.
Here's how I might quickly do something like that.
I run into fallback situations pretty quickly with duckplyr, and it would be nice to be able to write macros or adjust my code to work around them. If possible, could you please share an example of how I might do something like the above in duckplyr for my R session? I've been attempting to do this with relexpr_set_alias and to_duckdb_expr, but I haven't been making much progress.
The text was updated successfully, but these errors were encountered: