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
It works fine for a dataframe, but not for a lazy_tbl.
library(duckdb)
#> Loading required package: DBI
library(dplyr)
#> Warning: package 'dplyr' was built under R version 4.2.3#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, unioncon<- dbConnect(duckdb())
copy_to(con, mtcars, "mtcars", temporary=FALSE)
copy_to(con, mtcars, "mtcars", overwrite=TRUE, temporary=FALSE)
mtcars_sql<- tbl(con, "mtcars")
copy_to(con, mtcars_sql, "mtcars2", temporary=FALSE)
copy_to(con, mtcars_sql, "mtcars2", overwrite=TRUE, temporary=FALSE)
#> Error in `db_compute()`:#> ! Can't copy query to table mtcars2.#> Caused by error in `db_save_query.DBIConnection()`:#> ! Can't save query to table mtcars2.#> ℹ Using SQL: CREATE TABLE mtcars2 AS SELECT * FROM mtcars#> Caused by error:#> ! rapi_execute: Failed to run query#> Error: Catalog Error: Table with name "mtcars2" already exists!
dbDisconnect(con)
It works fine for a dataframe, but not for a lazy_tbl.
Created on 2024-08-14 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: