Skip to content

dbWriteTable adds _rescued_data column #147

@vladimirobucina

Description

@vladimirobucina

When writing a table using staging volume new column is added called _rescued_data.

I've done this with mtcars dataset.

Recreate the behaviour:

library(brickster)
library(DBI)
library(testthat)

con <- dbConnect(
  drv = DatabricksSQL(),
  warehouse_id = "warehouse_id",
  catalog = "catalog"
)

dbWriteTable(
  conn = con,
  name = Id(catalog = "<catalog>", schema = "<schema>", table = "<table>"),
  value = mtcars,
  overwrite = TRUE,
  staging_volume = "/Volumes/<catalog>/<schema>/<volume>",
  progress = TRUE
)

result <- brickster::db_uc_tables_get(
  "<catalog>",
  "<schema>",
  "<table>"
)

test_that::expect_equal(result, mtcars, ignore_attr = c("class"))

Hope this example is good enough.

I'm using brickster version 0.2.11 on MacOS.

Metadata

Metadata

Assignees

Labels

investigationFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions