CreateDataSourceTableCommand Logical Command

CreateDataSourceTableCommand is a logical command that creates a new table (in a session-scoped SessionCatalog).

CreateDataSourceTableCommand is created exclusively when DataSourceAnalysis evaluation rule resolves CreateTable logical operator for a non-Hive table provider with no query.

CreateDataSourceTableCommand takes a table metadata and ignoreIfExists flag.

run Method

run(sparkSession: SparkSession): Seq[Row]

run creates a new table in a session-scoped SessionCatalog.

run uses the input SparkSession to access SessionState that in turn is used to access the current SessionCatalog.

Internally, run creates a BaseRelation to access the table’s schema.

run accepts tables only (not views) with the provider defined.
run is a part of RunnableCommand Contract.

results matching ""

    No results matching ""