Class TableChange.DropColumn

java.lang.Object
org.apache.flink.table.catalog.TableChange.DropColumn
All Implemented Interfaces:
TableChange, TableChange.CatalogTableChange, TableChange.MaterializedTableChange
Enclosing interface:
TableChange

@PublicEvolving public static class TableChange.DropColumn extends Object implements TableChange.CatalogTableChange, TableChange.MaterializedTableChange
A table change to drop the column.

It is equal to the following statement:

    ALTER TABLE <table_name> DROP COLUMN <column_name>
 

Note: A DropColumn change may also occur when rolling back the schema during a failed ALTER MATERIALIZED TABLE AS QUERY operation. If the operation fails, columns added to align with the query results may need to be removed to restore the original schema.

  • Method Details

    • getColumnName

      public String getColumnName()
      Returns the column name.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object