Skip to content

CreateTableAsSelect Logical Command

CreateTableAsSelect is a BinaryCommand with V2CreateTablePlan that represents the following high-level operators in a logical query plan:

CreateTableAsSelect is planned as AtomicCreateTableAsSelectExec or CreateTableAsSelectExec physical command at execution.

Creating Instance

CreateTableAsSelect takes the following to be created:

CreateTableAsSelect is created when:

Execution Planning

CreateTableAsSelect is planned to one of the following by DataSourceV2Strategy execution planning strategy (based on a CatalogPlugin this CreateTableAsSelect is executed against):

(Legacy) Logical Resolution

CreateTableAsSelect can be resolved to a CreateTableV1 logical operator by ResolveSessionCatalog logical resolution rule (for non-isV2Provider legacy providers).