create_table {catalog} | R Documentation |
Create A Table
Description
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.
Usage
create_table(sc, table, path, source, ...)
Arguments
sc |
A |
table |
|
path |
|
source |
|
... |
Additional options to be passed to the |
Details
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"
Value
A tbl_spark
.
See Also
cache_table()
, get_table()
, list_tables()
, refresh_table()
,
table_exists()
, uncache_table()