pyspark.sql.SQLContext.createExternalTable#
- SQLContext.createExternalTable(tableName, path=None, source=None, schema=None, **options)[source]#
Creates an external table based on the dataset in a data source.
It returns the DataFrame associated with the external table.
The data source is specified by the
sourceand a set ofoptions. Ifsourceis not specified, the default data source configured byspark.sql.sources.defaultwill be used.Optionally, a schema can be provided as the schema of the returned
DataFrameand created external table.Added in version 1.3.0.
- Returns: