InsertableRelation Contract — Relations with Inserting or Overwriting Data Support

InsertableRelation is an abstraction of BaseRelations that support inserting or overwriting data.

Note
InsertIntoTable unary logical operator is used to insert into an InsertableRelation.
Table 1. InsertableRelation Contract
Method Description

createRelation

insert(
  data: DataFrame,
  overwrite: Boolean): Unit

Inserts or overwrites data (from the given DataFrame) into a relation per overwrite flag

Used when InsertIntoDataSourceCommand logical command is executed

Note
JDBCRelation is the one and only known direct implementation of InsertableRelation Contract in Spark SQL.

results matching ""

    No results matching ""