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