Interface AlterTableOps
- All Known Implementing Classes:
AlterTestTableOps,IcebergAlterTableOps
public interface AlterTableOps
An interface that handles ALTER TABLE operations.
An instance is created and used when TableProvider.alterTable(String) is called.
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdatePartitionSpec(List<String> partitionsToAdd, Collection<String> partitionsToDrop) Updates a table's partition spec, if applicable.voidupdateSchema(List<Schema.Field> columnsToAdd, Collection<String> columnsToDrop) Updates a table's schema.voidUpdates a table's properties.
-
Method Details
-
updateTableProperties
Updates a table's properties. Includes setting properties (which overwrites existing values), and/or resetting properties (removes values of given keys). -
updateSchema
Updates a table's schema. Includes adding new columns and/or dropping existing columns. -
updatePartitionSpec
Updates a table's partition spec, if applicable. Includes adding new partitions and/or dropping existing partitions.
-