Upgrading Iceberg tables to v3 in Snowflake, and changing partitions without a rewrite
Snowflake can now upgrade Apache Iceberg tables from v2 to v3 in place and evolve partition specs after creation. The steps, the blockers and the one-way door.
Code for this article
cloudcentrix-labs/iceberg-lakehouseApache Iceberg on a laptop with PyIceberg: row-level deletes for GDPR and POPIA erasure, time travel, branches and partition evolution.
In CI. Runs ruff, the pytest suite and every demo script end to end. Nothing on cloud storage is tested.
Two recent Snowflake releases remove the most common reason teams recreate Iceberg tables. Partition evolution became generally available on 18 September 2026, and in-place upgrades from Iceberg v2 to v3 followed on 16 October. Between them, a table can change its layout and its format version while keeping its name, privileges and downstream references.
Partition evolution
Partitioning chosen on day one rarely matches the queries of year two. Until now, changing it meant a new table and a full copy. For Snowflake-managed Iceberg tables you can now change the partition spec directly:
ALTER ICEBERG TABLE myTable ADD PARTITION BY (BUCKET(10, col1));
ALTER ICEBERG TABLE myTable DROP PARTITION BY (col2);
ALTER ICEBERG TABLE myTable REPLACE PARTITION BY (BUCKET(10, col1)) WITH (BUCKET(20, col1));
Existing data is not rewritten. New writes use the new spec and old files stay as they are, which is how Iceberg is designed to work. The supported transforms are identity, BUCKET, TRUNCATE, YEAR, MONTH, DAY and HOUR.
You can see the specs a table has accumulated:
SHOW ICEBERG TABLES LIKE 'myTable'
->> SELECT "partition_specs", "current_partition_spec_id" FROM $1;
Three constraints to plan around:
- One partition field changes per command.
- A column that appears in any current or historical partition spec cannot be dropped.
- Clustering cannot be enabled on a table that is, or has ever been, partitioned.
Upgrading to Iceberg v3
Version 3 of the Iceberg specification brings default values, row lineage, deletion vectors and new data types. The upgrade is a short sequence.
Check the current version:
SHOW PARAMETERS LIKE 'ICEBERG_VERSION' IN TABLE my_v2_iceberg_table;
Remove position-delete files, which block the upgrade. This must be its own statement:
ALTER ICEBERG TABLE my_v2_iceberg_table OPTIMIZE (REMOVE_POSITION_DELETES);
Then upgrade:
ALTER ICEBERG TABLE my_v2_iceberg_table UPGRADE TO ICEBERG VERSION 3;
This is a one-way door
A v3 table cannot be downgraded. For Snowflake-managed tables there is a way back through Time Travel, within the retention period, by cloning the table as it was before the upgrade. That makes two things worth doing first:
- Note the timestamp immediately before you upgrade.
- Check the retention period on the table is long enough to cover your validation window.
What the upgrade touches
- Writes during the upgrade.
UPDATE,DELETEandMERGEare blocked while it runs.INSERTandCOPYare retried automatically. Schedule it away from heavy merge jobs. - Streams. Streams that reference
METADATA$ROW_IDstop working and must be recreated. - Dynamic tables. Any dynamic table reading the upgraded table is reinitialised once. On a large table that is a real cost, so plan the warehouse for it.
- Other engines. Every engine that reads the table must support v3. Check your Spark, Trino and Athena versions before upgrading a shared table, not after.
What is and is not supported
The upgrade works for Snowflake-managed tables and for externally managed tables that use an Iceberg REST catalog. It is not supported for tables on a Glue or object-storage catalog source, for Delta Direct or Parquet Direct tables, or where the external volume is read-only. In a replicated setup, upgrade in the source account.
On Snowflake-managed v3 tables, column defaults can be SQL expressions, sequences and identity columns. Non-constant defaults such as CURRENT_DATE() need the ALLOW_V3_EXPRESSION_DEFAULTS parameter. On externally managed tables, defaults must be literal constants or the upgrade fails.
Our advice
Use partition evolution now wherever a partition scheme is hurting queries; the risk is low because nothing is rewritten. Treat the v3 upgrade as a planned change: start with a table that only Snowflake reads, confirm streams and dynamic tables downstream, and move shared tables once every consumer is confirmed on v3.
