powered by
Creates an external table based on the dataset in a data source, Returns a SparkDataFrame associated with the external table.
# S3 method for default createExternalTable(tableName, path = NULL, source = NULL, ...)
a name of the table.
the path of files to load.
the name of external data source.
additional argument(s) passed to the method.
A SparkDataFrame.
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.
source
# NOT RUN { sparkR.session() df <- createExternalTable("myjson", path="path/to/json", source="json") # }
Run the code above in your browser using DataLab