# Apache Iceberg Schema Evolution for Nested Data: Safe Changes and Compatibility Rules

DevFeed: [Apache Iceberg Schema Evolution for Nested Data: Safe Changes and Compatibility Rules](<https://devfeed.tech/articles/apache-iceberg-schema-evolution-for-nested-data-safe-changes-and-compatibility-rules-102842.md>)

Original publisher: [Read original article](<https://www.dremio.com/blog/apache-iceberg-schema-evolution-for-nested-data-safe-changes-and-compatibility-rules/>)

Author: Alex Merced

Published: 2026-10-27T18:56:58Z

Content type: article

Language: en

Sources: [Dremio](<https://devfeed.tech/sources/dremio.md>)

Topics: [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [Apache Iceberg](<https://devfeed.tech/topics/apache-iceberg.md>), [schema design](<https://devfeed.tech/topics/schema-design.md>), [Apache Spark](<https://devfeed.tech/topics/spark.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [apache-iceberg](<https://devfeed.tech/tags/apache-iceberg.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [data-lakehouse](<https://devfeed.tech/tags/data-lakehouse.md>), [dremio-blog-open-data-insights](<https://devfeed.tech/tags/dremio-blog-open-data-insights.md>), [engine](<https://devfeed.tech/tags/engine.md>), [ids](<https://devfeed.tech/tags/ids.md>), [maps](<https://devfeed.tech/tags/maps.md>), [nested](<https://devfeed.tech/tags/nested.md>), [rules](<https://devfeed.tech/tags/rules.md>), [schema-evolution](<https://devfeed.tech/tags/schema-evolution.md>), [tests](<https://devfeed.tech/tags/tests.md>), [type](<https://devfeed.tech/tags/type.md>)

## AI overview

Iceberg resolves nested fields by stable field ID, which can allow metadata-only additions, drops, renames, and reordering without rewriting files when readers honor IDs. Assign new IDs to added or re-added fields; keep the ID for a rename. New fields should be optional or have defaults, and making optional fields required without defaults can break reads. Map-key type changes cannot be evolved in place and require a rewrite or a new column and migration. Type promotions vary by format version and engine. The excerpt recommends checking metadata IDs, staging changes, and testing reads across every production engine and connector version before rollout; its example reports Spark and Dremio passing while an older Trino connector returned nulls after a rename. If a reader fails compatibility checks, upgrade it, rewrite data, or migrate to a new column, then monitor errors and nulls and retain a rollback snapshot.

## Source excerpt

Evolve nested Iceberg structs, lists, and maps safely using field IDs, nullability, type-promotion rules, defaults, and cross-engine compatibility tests. The post Apache Iceberg Schema Evolution for Nested Data: Safe Changes and Compatibility Rules appeared first on Dremio.