Learn R Programming

brickster (version 0.2.11)

copy_to.DatabricksConnection: Copy data frame to Databricks as table or view

Description

Copy data frame to Databricks as table or view

Usage

# S3 method for DatabricksConnection
copy_to(
  dest,
  df,
  name = deparse(substitute(df)),
  overwrite = FALSE,
  temporary = TRUE,
  ...
)

Value

dbplyr table reference

Arguments

dest

A DatabricksConnection object

df

Data frame to copy

name

Name for the table/view

overwrite

Whether to overwrite existing table/view

temporary

Whether to create as temporary view (default: TRUE, but NOT SUPPORTED - will error)

...

Additional arguments passed to dbWriteTable

Details

Note: temporary=TRUE will result in an error as temporary tables are not supported with the SQL Statement Execution API. Use temporary=FALSE to create regular tables.