Iceberg Snapshots Explained
Apache Iceberg snapshots preserve immutable table states, enabling safe concurrent reads and writes, time travel, and metadata-driven file pruning.
In the full article
Read the transcript
Auto-generated captions; wording may contain recognition errors.
Every change to an Apache iceberg table produces a snapshot. Not a copy of the data, but a pointer to the exact set of files that represent the table at that moment. Understanding how snapshots work explains almost everything else about how iceberg delivers reliability at scale. When you write to an iceberg table, the process starts by writing new data files. Then a new manifest file is created listing those data files along with statistics about their contents. That manifest is added to a manifest list which describes all the manifest files belonging to this snapshot. Finally, a new snapshot entry is appended to the table metadata file pointing to that manifest list. At no point are existing files modified. Every committed state of the table is preserved as an immutable snapshot. This immutability is what makes concurrent reads and writes safe. A reader holds a reference to one snapshot while a writer creates a new one, and neither operation interferes with the other. Time travel is a direct consequence of this model. Because every prior snapshot still exists and still points to a valid set of data files, you can query any historical state by referencing the snapshot that represented the table at that time. This is not a restore operation. The historical data is live and queryable without any reconstruction. The metadata hierarchy also enables aggressive query planning. Manifest files carry column level statistics including value ranges for each data file. Before opening a single data file, the query engine reads manifest statistics and eliminates any file whose value ranges cannot satisfy the query predicate. on large tables. This pruning removes the vast majority of files from consideration before any actual data is read.


