AlterTableDropConstraint¶
AlterTableDropConstraint
is an AlterTableCommand
(Spark SQL) for ALTER TABLE DROP CONSTRAINT SQL command for CHECK constraints.
Creating Instance¶
AlterTableDropConstraint
takes the following to be created:
- Table (
LogicalPlan
) - Constraint Name
-
ifExists
flag
AlterTableDropConstraint
is created when:
DeltaSqlAstBuilder
is requested to parse ALTER TABLE DROP CONSTRAINT SQL command
Table Changes¶
changes: Seq[TableChange]
changes
is part of the AlterTableCommand
(Spark SQL) abstraction.
changes
gives a single-element collection with an DropConstraint (with the constraintName and ifExists flag).