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).
AtomicCreateTableAsSelectExec
is created for CreateTableAsSelects on aStagingTableCatalog
(otherwise, it is a CreateTableAsSelectExec)AtomicReplaceTableExec
is created forReplaceTable
s on aStagingTableCatalog
(otherwise, it is aReplaceTableExec
)AtomicReplaceTableAsSelectExec
is created forReplaceTableAsSelect
s 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:
AtomicCreateTableAsSelectExec
unary physical command is executed
stageCreateOrReplace¶
StagedTable stageCreateOrReplace(
Identifier ident,
StructType schema,
Transform[] partitions,
Map<String, String> properties)
Creates a StagedTable
Used when:
AtomicReplaceTableExec
leaf physical command is executedAtomicReplaceTableAsSelectExec
unary physical command is executed
stageReplace¶
StagedTable stageReplace(
Identifier ident,
StructType schema,
Transform[] partitions,
Map<String, String> properties)
Creates a StagedTable
Used when:
AtomicReplaceTableExec
leaf physical command is executedAtomicReplaceTableAsSelectExec
unary physical command is executed
Implementations¶
Note
No known native Spark SQL implementations.