AlterTable Logical Command¶
AlterTable is a Command for ALTER TABLE SQL commands:
ALTER TABLE ADD COLUMNSALTER TABLE REPLACE COLUMNSALTER TABLE CHANGE COLUMNALTER TABLE RENAME COLUMNALTER TABLE DROP COLUMNSALTER TABLE SET TBLPROPERTIESALTER TABLE UNSET TBLPROPERTIESALTER TABLE SET LOCATION
Creating Instance¶
AlterTable takes the following to be created:
- TableCatalog
-
Identifier - NamedRelation for the table
- TableChanges
AlterTable is created when:
CatalogV2Utilis requested to createAlterTable
Execution Planning¶
AlterTable is resolved to AlterTableExec by DataSourceV2Strategy execution planning strategy.