createExternalTable {SparkR}R Documentation

Create an external table

Description

Creates an external table based on the dataset in a data source, Returns a SparkDataFrame associated with the external table.

Usage

## Default S3 method:
createExternalTable(tableName, path = NULL, source = NULL,
  ...)

Arguments

tableName

A name of the table

path

The path of files to load

source

the name of external data source

Details

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.

Value

SparkDataFrame

Note

createExternalTable since 1.4.0

Examples

## Not run: 
##D sparkR.session()
##D df <- createExternalTable("myjson", path="path/to/json", source="json")
## End(Not run)

[Package SparkR version 2.0.0 Index]