ALTER ICEBERG TABLE
Syntax
Changing table options
Alters previously configured options for the specified Apache Iceberg table:
Partition evolution
Changes the partition columns of an existing table. This change does not rebuild the existing data according to the new partitioning, but will apply the new partitioning to data moving forward.
Note you can use any partition transforms supported by iceberg. for example:
To stop partitioning a table moving forward:
Sorting evolution
Changes the sorting columns of an existing table.
This will affect the data written from now onwards and new compactions will write data using the new sorting.
To disable sorting completely:
If you wishes to re-sort old data after changing the sorting, you can trigger a compaction with OPTIMIZE TABLE command.
Examples
Modifying table options:
Changing partitions columns:
Changing Sort columns:
Note
that not all table options are mutable.
All mutable options are denoted by — editable in the individual option descriptions.
To check if a certain table option is mutable, see CREATE ICEBERG TABLE.
Last updated