Description Usage Arguments Details Value Note See Also Examples
Creates an external table based on the dataset in a data source, Returns a SparkDataFrame associated with the external table.
1 |
tableName |
a name of the table. |
path |
the path of files to load. |
source |
the name of external data source. |
schema |
the schema of the data required for some data sources. |
... |
additional argument(s) passed to the method. |
The data source is specified by the source
and a set of options(...).
If source
is not specified, the default data source configured by
"spark.sql.sources.default" will be used.
A SparkDataFrame.
createExternalTable since 1.4.0
createTable
1 2 3 4 5 | ## Not run:
sparkR.session()
df <- createExternalTable("myjson", path="path/to/json", source="json", schema)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.