Class TableChange.AddColumn

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

@PublicEvolving public static class TableChange.AddColumn extends Object implements TableChange.CatalogTableChange, TableChange.MaterializedTableChange
A table change to add a column.

It is equal to the following statement:

    ALTER TABLE <table_name> ADD <column_definition> <column_position>
 

Note: An ALTER MATERIALIZED TABLE AS QUERY operation may also produce an AddColumn change. This occurs when the materialized table's schema is updated to align with the structure of the query results, which might require adding new columns.