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

View source: R/databricks-dbplyr.R

copy_to.DatabricksConnectionR Documentation

Copy data frame to Databricks as table or view

Description

Copy data frame to Databricks as table or view

Usage

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

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.

Value

dbplyr table reference


brickster documentation built on Sept. 9, 2025, 5:33 p.m.