CreateV2Table Logical Command¶
CreateV2Table
is a logical command and a V2CreateTablePlan.
CreateV2Table
is resolved to CreateTableExec
physical command by DataSourceV2Strategy execution planning strategy.
Creating Instance¶
CreateV2Table
takes the following to be created:
- TableCatalog
- Table Identifier
- Table Schema
- Partitioning (
Seq[Transform]
) - Properties (
Map[String, String]
) -
ignoreIfExists
flag
CreateV2Table
is created when:
-
ResolveCatalogs logical resolution rule is executed (and resolves a
CreateTableStatement
parsed statement) -
ResolveSessionCatalog logical resolution rule is executed
withPartitioning¶
withPartitioning(
rewritten: Seq[Transform]): V2CreateTablePlan
withPartitioning
sets the partitioning to the given rewritten
partitioning.
withPartitioning
is part of the V2CreateTablePlan abstraction.
Last update: 2020-10-01