-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
Type: bugSomething isn't workingSomething isn't working
Milestone
Description
What happened?
The documentation suggests that the default behavior of write_adbc() is mode = "create_append", but in fact we can't specify mode = "create_append" and depending on the driver the default seems to be "create".
arrow-adbc/r/adbcdrivermanager/R/helpers.R
Lines 30 to 31 in 11f92d0
| #' @param mode One of "create", "append", or "default" (error if the schema | |
| #' is not compatible or append otherwise). |
arrow-adbc/r/adbcdrivermanager/R/helpers.R
Lines 113 to 115 in 11f92d0
| write_adbc.default <- function(tbl, db_or_con, target_table, ..., | |
| mode = c("default", "create", "append"), | |
| temporary = FALSE) { |
arrow-adbc/r/adbcdrivermanager/R/helpers.R
Line 129 in 11f92d0
| adbc.ingest.mode = if (!identical(mode, "default")) paste0("adbc.ingest.mode.", mode), |
con <- adbcdrivermanager::adbc_database_init(
adbcsqlite::adbcsqlite(),
uri = ":memory:"
) |>
adbcdrivermanager::adbc_connection_init()
adbcdrivermanager::write_adbc(mtcars, con, "mtcars")
adbcdrivermanager::write_adbc(mtcars, con, "mtcars")
#> Error in adbc_statement_execute_query(stmt): INTERNAL: failed to execute: table "mtcars" already exists
#> query was: CREATE TABLE main . "mtcars" ("mpg" REAL, "cyl" REAL, "disp" REAL, "hp" REAL, "drat" REAL, "wt" REAL, "qsec" REAL, "vs" REAL, "am" REAL, "gear" REAL, "carb" REAL)Created on 2025-09-24 with reprex v2.1.1
Stack Trace
No response
How can we reproduce the bug?
No response
Environment/Setup
No response
Metadata
Metadata
Assignees
Labels
Type: bugSomething isn't workingSomething isn't working