Skip to content

CreateDataSourceTableAsSelectCommand Logical Command

CreateDataSourceTableAsSelectCommand is a LeafRunnableCommand that creates a DataSource table with the data (from a AS query).

Note

A DataSource table is a Spark SQL native table that uses any data source but Hive (per USING clause).

CreateDataSourceTableCommand Logical Operator

CreateDataSourceTableCommand is used instead for CreateTable logical operators with no AS query.

Creating Instance

CreateDataSourceTableAsSelectCommand takes the following to be created:

CreateDataSourceTableAsSelectCommand is created when:

Executing Command

RunnableCommand
run(
  sparkSession: SparkSession): Seq[Row]

run is part of the RunnableCommand abstraction.

run...FIXME