Save the DataFrame to the destination and return a relation with the given parameters based on the contents of the given DataFrame.
Save the DataFrame to the destination and return a relation with the given parameters based on the contents of the given DataFrame. The mode specifies the expected behavior of createRelation when data already exists. Right now, there are three modes, Append, Overwrite, and ErrorIfExists. Append mode means that when saving a DataFrame to a data source, if data already exists, contents of the DataFrame are expected to be appended to existing data. Overwrite mode means that when saving a DataFrame to a data source, if data already exists, existing data is expected to be overwritten by the contents of the DataFrame. ErrorIfExists mode means that when saving a DataFrame to a data source, if data already exists, an exception is expected to be thrown.
1.3.0
Returns a new base relation with the given parameters and user defined schema.
Returns a new base relation with the given parameters and user defined schema.
The parameters' keywords are case insensitive and this insensitivity is enforced by the Map that is passed to the function.
Returns a new base relation with the given parameters.
Returns a new base relation with the given parameters.
The parameters' keywords are case insensitive and this insensitivity is enforced by the Map that is passed to the function.
The string that represents the format that this data source provider uses.
The string that represents the format that this data source provider uses. This is overridden by children to provide a nice alias for the data source. For example:
override def shortName(): String = "parquet"
1.5.0
Column tables don't support any extensions over regular Spark schema syntax, but the support for ExternalSchemaRelationProvider has been added as a workaround to allow for specifying schema in a CREATE TABLE AS SELECT statement.
Normally Spark does not allow specifying schema in a CTAS statement for DataSources (except its special "hive" provider), so schema is passed here as string which is parsed locally in the CreatableRelationProvider implementation.