ALTER TABLE CHANGE COLUMN
Changes the name, type, order or comment of a column in an Iceberg table.
Note
ALTER TABLE REPLACE COLUMNS is not supported. Because
REPLACE COLUMNS removes all columns and then adds new ones, it
is not supported for Iceberg. CHANGE COLUMN is the preferred syntax
for schema evolution.
Synopsis
ALTER TABLE [db_name.]table_nameCHANGE [COLUMN]col_old_namecol_new_namecolumn_type[COMMENTcol_comment] [FIRST|AFTERcolumn_name]
Example
ALTER TABLE iceberg_table CHANGE comment blog_comment string AFTER id