← All notes

Evolve an Iceberg table schema without rewriting existing values

Answer: Iceberg tracks each column with a unique ID. You can add, drop, rename, or widen columns without mixing up existing values. A newly added column is optional and defaults to null.

Safe schema changes

Supported changes include add, drop, rename, widen the type of a column, and change the order of columns. Dropping a column or field does not change the values in any other column. Updates work the same way: updating a column or field does not change values in any other column.

Unique IDs track each column in a table. Adding a column assigns a new ID, which prevents existing data from being used by mistake. If a format tracks columns by name, reusing a name can inadvertently un-delete a column.

| add | drop | |---|---| | new ID | does not change values | | null default value | optional added column | | widen | type of a column |

UpdateSchema

The Java UpdateSchema interface extends PendingUpdate. The added column will be optional with a null default value. If parent identifies a struct, a new column is added to that struct. Columns may be updated and renamed in the same schema update. The name is used to find the column to rename using Schema.findField.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Apache Iceberg docs, Evolution; Apache Iceberg source, UpdateSchema.java. Apache-2.0. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Apache Iceberg docs, Evolution; Apache Iceberg source, UpdateSchema.java. Apache-2.0.

Cite this

Permanent ID: iil:note:rk75br55

iinventedlight. 2026. "Evolve an Iceberg table schema without rewriting existing values." iinventedlight Library, iil:note:rk75br55, version of 2026-11-20. https://iinventedlight.com/library/notes/iceberg-schema-evolution/. License: CC-BY-4.0.

@misc{iil_note_rk75br55,
  author = {{iinventedlight}},
  title = {{Evolve an Iceberg table schema without rewriting existing values}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-20},
  url = {https://iinventedlight.com/library/notes/iceberg-schema-evolution/},
  note = {Permanent ID iil:note:rk75br55. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/iceberg-schema-evolution.md.