Iceberg Schema Evolution is the ability to alter a table's schema (add columns, drop columns, rename columns, reorder columns, or promote column data types) without rewriting the existing data files and without breaking existing queries or pipelines that reference the old schema. This is one of Iceberg's most operationally significant features, addressing a painful limitation of older data lake approaches where any schema change required a full table rewrite.

The mechanism that makes safe schema evolution possible is Iceberg's use of stable, immutable column IDs. Rather than tracking columns by their names (as Parquet's native format does), Iceberg assigns each column a unique integer ID at creation time. This ID never changes, even if the column is renamed. When the query engine reads an old Parquet file that has a column named price with ID 7, and the current schema shows column ID 7 is now named unit_price, the engine correctly maps the renamed column by ID rather than by name. Old data files remain readable without modification.

Supported Evolution Operations

Spec v2 Required Fields

Iceberg Spec v2 introduced explicit required vs. optional field tracking. When a column is added with a default value (Spec v2 feature), the schema records that the column is required and specifies the default. Old data files that do not contain the column are handled by returning the default value at read time. This allows pipeline code to treat the column as non-nullable even for historical data that predates the column's addition.

Schema Evolution for AI Agents

Safe schema evolution is particularly valuable in AI agent contexts where the agent may be querying tables that change over time. If the underlying table schema changes (a column is renamed or a new field is added), Iceberg's evolution guarantees that historical data remains queryable under the new schema. An agent that caches a table's schema for context should still verify schema currency against the catalog before generating SQL for production queries.

Master the Agentic Lakehouse

Start building today with free trials and authoritative resources.

Architecting an Apache Iceberg Lakehouse

Architecting an Apache Iceberg Lakehouse

Buy on Manning
The AI Lakehouse

The AI Lakehouse

Buy on Amazon
Apache Iceberg and Agentic AI

Apache Iceberg and Agentic AI

Buy on Amazon
Lakehouse Built for Everyone

Lakehouse Built for Everyone

Buy on Amazon