create_table | R Documentation |
Creates a table, in the hive warehouse, from the given path and returns the
corresponding DataFrame
. The table will contain the contents of the file
that is in the path
parameter.
create_table(sc, table, path, source, ...)
sc |
A |
table |
|
path |
|
source |
|
... |
Additional options to be passed to the |
The default data source type is parquet.
This can be changed using source
or setting the configuration option
spark.sql.sources.default
when creating the spark session using or after
you have created the session using
config <- sparklyr::spark_config() config[["spark.sql.sources.default"]] <- "csv"
A tbl_spark
.
cache_table()
, get_table()
, list_tables()
, refresh_table()
,
table_exists()
, uncache_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.