Skip to content

AlterTableDropFeature Command

AlterTableDropFeature is an AlterTableCommand (Spark SQL) unary logical operator that represents ALTER TABLE DROP FEATURE SQL command in a logical query plan.

AlterTableDropFeature supports a single feature removal (by the feature name).

AlterTableDropFeature becomes an AlterTableDropFeatureDeltaCommand at execution time (when AbstractDeltaCatalog is requested to alter a table).

Creating Instance

AlterTableDropFeature takes the following to be created:

  • Table (LogicalPlan)
  • Name of the feature to drop
  • truncateHistory flag

AlterTableDropFeature is created when:

TableChanges

AlterTableCommand
changes: Seq[TableChange]

changes is part of the AlterTableCommand (Spark SQL) abstraction.

changes is just a single DropFeature (for this name of the feature to drop and truncateHistory flag).