← back to tech log

iceberg

iceberg

Understanding Apache Iceberg: What It Is, Why It Exists, and When to Use It

The First Encounter: Why Iceberg Is Confusing

When most people meet Apache Iceberg for the first time, they get confused. There is no code to run, no Docker image to pull, no dashboard to open, and no service to start. Yet everyone in the data lake world keeps talking about it. The natural questions are: what exactly is it, where does it live, and when should I use it?

The confusion disappears once you understand the key point: Apache Iceberg is not a product. It is a specification — a written contract that defines how table data and metadata must be organized on top of object storage. You never "install Iceberg". What you actually install and run are tools that implement the specification: a query engine such as Trino or Spark, a catalog such as Nessie or REST, and a runtime library. Iceberg itself is invisible, like a blueprint that every builder follows so they all produce compatible results.

So, when should you use it? Iceberg is the right choice when you keep large analytical datasets on object storage, when several engines must read and write the same tables, and when you need database-like guarantees — atomic commits, schema evolution, and time travel — on top of cheap storage. It is the wrong choice for small, low-latency, row-by-row operational workloads; that is still the job of a real database.

Iceberg Is a Specification, Not Software

Thanks to the evolution of technology and the way we store data, the community created a specification that tells us how to store data in a way that we can find it and keep it clean. It defines how to take snapshots and preserve every version of a table. For a single table — for example, a User table — every historical state is kept: all column changes, all updates, and all data as it existed at each point in time.

This removes the usual anxiety around data lakes. Concerns such as time travel, committing changes safely, accessing data easily, and knowing what changed — and, through the commit metadata recorded in the catalog, who changed it — are handled by the specification itself, so we no longer solve these problems manually.

Iceberg Does Not Execute Queries

Before anything else, remember this: whenever we talk about Iceberg, we are talking about organizing data, not running queries. Iceberg has no deal with the engine, and by itself it cannot execute a single query. When you want to run a query, you never touch Iceberg's execution — you run the query on an engine, and Iceberg helps that engine find the right data quickly. In other words, Iceberg is responsible for what the data is and where it is, never for how it is computed.

Why Object Storage Instead of a Database

The second thing to understand is the storage decision behind Iceberg. When it was created, the engineers deliberately moved away from storing analytical data inside databases and placed the data on object storage instead.

Why avoid databases such as PostgreSQL or ClickHouse for this? The answer is the type of data. Object storage hosts a data lake or lakehouse: massive historical collections, not a streaming operational database that must serve queries every second. Storing ten years of data in a database would require expensive resources and computation at all times. Object storage keeps that history at far lower cost with far fewer resources, and Iceberg adds the table semantics that object storage lacks.

The Stack: Storage, Engine, and the Guide Between Them

Now let us dive into how Iceberg fits into a real setup. The specification gives us the map and the guide that explain how to build and use the table.

  • First, we start with object storage — let us assume we are using RustFS.
  • Second, we select an engine for running queries — let us assume Trino.

At this point we have the start point (storage) and the destination (engine). What is missing is the path between them. This is exactly where Iceberg and its metadata come in: they guide the engine to the correct data in a clean and reliable way.

The Structure: The Metadata Tree

The structure of the Iceberg specification is simple and forms a metadata tree:

metadata.json → manifest list → manifest files → data files
  • metadata.json — the entry point: current schema, partition spec, and the list of snapshots.
  • manifest list — one per snapshot: which manifests belong to that snapshot.
  • manifest files — the actual list of data files, with statistics used for pruning.
  • data files — the real data, stored as Parquet or similar formats on object storage.

The engine reads only the metadata it needs, skips everything else, and reaches exactly the files required by the query.