InsertableRelation Contract — Non-File-Based Relations with Inserting or Overwriting Data Support

InsertableRelation is the contract of non-file-based BaseRelations that support inserting or overwriting data.

package org.apache.spark.sql.sources

trait InsertableRelation {
  def insert(data: DataFrame, overwrite: Boolean): Unit
Table 1. InsertableRelation Contract
Property Description


Inserts or overwrites data (as DataFrame) in a relation

Used exclusively when InsertIntoDataSourceCommand logical command is executed

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

results matching ""

    No results matching ""