DeltaTableBuilder-class | R Documentation |
S4 class that represents pending table build operation
method
character name of the initializer method
ops
list list of operations in form of list(.method = ..., args = list(...))
DeltaTableBuilder, since 1.0.0
dlt_create()
, dlt_create_if_not_exists()
, dlt_replace()
, dlt_create_or_replace()
## Not run: # Create DeltaTable in a given location path <- tempfile() dlt_create() %>% dlt_location(path) %>% dlt_add_column("id", "integer", nullable = FALSE) %>% dlt_add_columns(structType("key string, value double")) %>% dlt_partitioned_by("key") %>% dlt_comment("Key-value table") %>% dlt_property("creation-time", as.character(Sys.time())) %>% dlt_execute() # Create DeltaTable with a given table name table_name <- paste0("delta_table_", paste(base::sample(letters, 10, TRUE), collapse = "")) dlt_create() %>% dlt_table_name(table_name) %>% dlt_add_column("id", "integer") %>% dlt_execute() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.