bigrquery icon indicating copy to clipboard operation
bigrquery copied to clipboard

Should `dbAppendTable()` use the `billing=` argument like `dbWriteTable(append=TRUE)` does?

Open eheinzen opened this issue 4 months ago • 1 comments

I have two BigQuery projects, one ("billing") that I can bill to, but the other ("target") I can't. I establish a database object like this:

conn <- DBI::dbConnect(
  bigrquery::bigquery(),
  project = target,
  dataset = dataset,
  billing = billing
)

The command

DBI::dbAppendTable(conn, "test_table", test_data)

doesn't work, but these both do:

DBI::dbAppendTable(conn, "test_table", test_data, billing = conn@billing)
DBI::dbWriteTable(conn, "test_table", test_data, append = TRUE)

Should dbAppendTable() pass the billing= argument to bq_table_upload() like dbWriteTable() does, too?

dbAppendTable

dbWriteTable passing that argument

eheinzen avatar Aug 11 '25 14:08 eheinzen

Yes.

hadley avatar Aug 13 '25 18:08 hadley