StagingTableCatalog¶
StagingTableCatalog is an extension of the TableCatalog abstraction for table catalogs that can stage Create, CreateOrReplace and Replace operations (for atomic CREATE TABLE AS SELECT and REPLACE TABLE and REPLACE TABLE AS SELECT queries).
AtomicCreateTableAsSelectExecis created for CreateTableAsSelects on aStagingTableCatalog(otherwise, it is a CreateTableAsSelectExec)AtomicReplaceTableExecis created forReplaceTables on aStagingTableCatalog(otherwise, it is aReplaceTableExec)AtomicReplaceTableAsSelectExecis created forReplaceTableAsSelects on aStagingTableCatalog(otherwise, it is aReplaceTableAsSelectExec)
Contract¶
stageCreate¶
StagedTable stageCreate(
Identifier ident,
StructType schema,
Transform[] partitions,
Map<String, String> properties)
Creates a StagedTable
Used when:
AtomicCreateTableAsSelectExecunary physical command is executed
stageCreateOrReplace¶
StagedTable stageCreateOrReplace(
Identifier ident,
StructType schema,
Transform[] partitions,
Map<String, String> properties)
Creates a StagedTable
Used when:
AtomicReplaceTableExecleaf physical command is executedAtomicReplaceTableAsSelectExecunary physical command is executed
stageReplace¶
StagedTable stageReplace(
Identifier ident,
StructType schema,
Transform[] partitions,
Map<String, String> properties)
Creates a StagedTable
Used when:
AtomicReplaceTableExecleaf physical command is executedAtomicReplaceTableAsSelectExecunary physical command is executed
Implementations¶
Note
No known native Spark SQL implementations.