Understanding Apache Iceberg

Share

Linkedin iconFacebook iconTwitter icon

More deployment options

What is Apache Iceberg?

Apache Iceberg is a modern open table format designed to bring powerful data management capabilities to large-scale data lakes. It was created to address the limitations of older formats like Apache Hive, enabling more reliable, efficient, and flexible data operations across complex architectures.

Iceberg is ideal for today’s evolving data needs. Whether you’re building advanced analytics pipelines or preparing high-quality datasets for AI and machine learning, Iceberg provides the transactional consistency, schema evolution, and performance optimizations needed to support both.

Apache Iceberg is an open table format specification that brings database-like reliability and performance to large-scale data lakes. Originally developed by Netflix to overcome the scaling bottlenecks of legacy Hive tables, Iceberg is now an Apache Software Foundation project maintained by a broad open-source community.

To understand Iceberg, it helps to distinguish what it is from what it isn’t:

  • It is an open specification, not a database or execution engine. Iceberg defines how table state, schemas, and file manifests are structured in metadata, allowing engines like Trino, Spark, and Flink to operate concurrently on the exact same tables.
  • It is a metadata abstraction layer, not a physical storage engine. Iceberg sits directly on top of existing object storage, including Amazon S3, Azure Data Lake Storage (ADLS), Google Cloud Storage (GCS), MinIO, or HDFS.
  • It tracks files explicitly, not by directory. Legacy formats like Apache Hive tracked tables by folder paths, requiring engines to list entire directories to infer which files existed. Iceberg eliminates directory listing overhead by maintaining an explicit, canonical inventory of every data file belonging to a table version.

Its true difference is its inherent vendor-neutral architecture. You own your data. You’re free to query it with any compatible query engine. This openness eliminates vendor lock-in and gives organizations true control over their data lakehouse strategy.

Why teams choose Iceberg

Companies with petabyte-scale data ecosystems are the primary users of Iceberg. Large datasets place enormous demands on information architectures. Iceberg’s use cases simplify big data management on a data lake.

Simpler data architectures

Data lakes can store unstructured and structured data, making them better suited to modern data analytics demands. However, data lakes cannot match a data warehouse platform’s full suite of analytics capabilities. As a result, companies often layer data warehouses on top of the data lakes. Besides the added complexity, this approach increases costs and the risks associated with data moves and duplication.

Iceberg’s open table format adds rich metadata and query engine compatibility to blend a warehouse’s analytics capabilities with a lake’s storage efficiency. This simpler architecture eliminates data warehouses and turns a lake into the enterprise’s central analytics resource.

Iceberg won because it has fewer drawbacks compared to traditional data warehouses. In fact, its enhanced metadata collection allows for features that are usually only associated with data warehouses, including ACID compliance, support for transactional data, time travel, and schema evolution.

This closes the gap between what had been a tradeoff between the high cost and superior features of a data warehouse and the low cost but more less feature-rich data lake. With Iceberg, you don’t have to choose, and that’s a big deal. It allows businesses to embrace cloud object storage–so much cheaper than other storage methods–and swap in whatever compute engine works for them.

This is an important distinction. Iceberg isn’t just open-sourced. It represents a paradigm shift from a monolithic data platform that provides an end-to-end experience to a model where data pipelines are composed of interoperable components that can be swapped out as needed. You can see this in the wide range of diverse contributions to the Apache project, ranging from companies such as AWS, to Starburst, to Apple.

How Iceberg works: the three layers

An Iceberg table operates across three distinct structural tiers: the catalog, the metadata layer, and the data layer.

The catalog

The catalog serves as the central point of truth for an Iceberg table, storing a reference pointer to the table’s current metadata file. Every commit is an atomic swap of this pointer. Either the new metadata file becomes current, or the commit fails and the existing pointer remains unchanged.

The metadata layer

The metadata layer sits directly below the catalog and consists of three nested file types:

  • Table Metadata Files: Written in JSON, these files record the table schema, partition specifications, current snapshot ID, and historical snapshot log. Every insert, update, or schema evolution appends a new table metadata file.
  • Manifest Lists: An Avro file representing a specific table snapshot. The manifest list points to one or more manifest files and stores partition boundary summaries for those manifests.
  • Manifest Files: Avro files that track individual data files along with column-level metrics, null counts, lower and upper bounds, and partition values. Query engines evaluate these statistics to skip entire data files during filter evaluation without scanning object storage.

The metadata layer also handles hidden partitioning. Instead of requiring users to supply explicit partition columns and directory paths in SQL queries, partition transforms sit in metadata. Users query base columns directly, and platform teams can evolve partition strategies over time without rewriting historical data files.

The data layer

The data layer consists of the underlying physical storage objects holding your records. Iceberg stores data in optimized columnar formats, primarily Parquet or ORC.

Iceberg catalog, metadata layer and data layer
The three layers of an Iceberg table.

Reads, writes, and concurrency

Iceberg guarantees ACID transactions on object storage by pairing immutable files with an atomic pointer swap in the catalog. Because writes never modify existing data in place, readers and writers operate concurrently without blocking one another.

The read path

When a query engine executes a SELECT statement against an Iceberg table, execution flows top-down through the metadata tree:

  1. Catalog Resolution: The query engine asks the catalog for the table’s current metadata file location.
  2. Snapshot Selection: The engine reads the table metadata JSON file and identifies the active snapshot ID (or a historical snapshot ID if performing time travel).
  3. Manifest List Pruning: The engine opens the snapshot’s manifest list and evaluates partition boundary summaries to ignore manifest files that do not contain relevant records.
  4. Manifest Pruning and Data File Selection: The engine reads the remaining manifest files, inspecting column min/max statistics and null counts to filter out specific data files.
  5. Physical Storage Scan: The engine reads only the surviving Parquet or ORC data files from object storage and executes the remaining query logic.

The write path and commit mechanism

When an engine executes an INSERT, UPDATE, DELETE, or MERGE operation, execution flows bottom-up:

  1. Data File Ingestion: The engine writes new, immutable Parquet or ORC data files (and any necessary delete files) to object storage.
  2. Manifest and Manifest List Creation: The engine writes new manifest files tracking those data objects, followed by a new manifest list file representing the proposed table snapshot.
  3. Table Metadata File Creation: The engine writes a new table metadata JSON file containing the proposed snapshot ID, updated schema, or altered partition specification.
  4. Atomic Catalog Swap: The engine asks the catalog to atomically update its reference pointer to the new table metadata file.

Optimistic Concurrency Control

The catalog swap uses optimistic concurrency control (OCC). The update succeeds only if the catalog pointer has not changed since the writer began its operation.

Features that set Iceberg apart

Time travel and rollbacks

Iceberg enables users to query previous states of a table with built-in version control. This makes it easy to reproduce historical queries or roll back to earlier versions for audit, debugging, or recovery purposes.

Hidden partitioning

Unlike Hive, which exposes partition logic to users, Iceberg hides the complexity. This protects against user errors and optimizes queries without requiring deep knowledge of the table’s physical structure.

Schema evolution

Iceberg supports dynamic schema changes with minimal disruption. You can add, remove, or rename columns, even within nested structures, and Iceberg tracks these changes by column ID to maintain consistency across schema versions.

Sorted tables and bucketing

Data written in sorted order by one or more columns enables aggressive file skipping during queries. Sorted tables are one of Iceberg’s most powerful performance features and a well-used strategy when looking for a range of values on the sorted column.

Snapshots, branches, and tags

Data lakehouse versioning and branching allow organizations to manage changes safely and efficiently. These features are extremely popular and are a big factor in the rise of lakehouse technology today.

Specifically, branching can be applied to several data cases, including:

  • Experimentation: Run transformations on a branch before merging changes into the main table.
  • Backfill Jobs: Isolate large data rewrites to avoid impacting production.
  • Safe Development: Allow multiple teams to work on the same dataset concurrently.
  • What-if Analysis: Test queries on branched data without affecting the production dataset.

Additionally, branching can also be combined with a Write-Audit-Publish (WAP) pattern, allowing you to safely stage changes in a branch, audit them, and then publish to the main branch, providing a robust workflow for managing complex data updates.

Branching: create branch, write, audit, publish
Write, audit, publish with Iceberg branches.

Branches, Snapshots, and Tags

Notably, branches differ from snapshots and tags:

Apache Iceberg‘s architecture features multiple snapshots. These snapshots provide version control, allowing us to utilize features such as time-travel querying and rollback functionality. This flexibility is shown in Visualizing Iceberg Snapshot Linear History. There’s a belief out there that having a long tail of prior versions available affects performance, but it actually doesn’t.

Most queries are simply working against the current version, and the query engine gets the name of the metadata file from the Iceberg catalog and doesn’t have to worry about all the other metadata files hanging around to support that long line of prior snapshots. The consequence of having all those snapshots is ultimately going to be the footprint of the underlying data files that must remain on your data lake to support each & every older version.

From Iceberg v1 to v3

From Iceberg v1 to v2: Laying the Foundation for Updates

The initial Iceberg v1 spec was a revolution in its own right. It broke the tight coupling between data files and directory structures, a common problem with formats like Hive.

Iceberg Spec v2 addressed the challenge of efficient row-level updates and deletes for real-time analytics and CDC by introducing positional delete files. While this enabled efficient merge-on-read operations, it also introduced a potential drawback in the form of query engine slowdowns due to reconciling numerous small delete files.

The Leap to v3: Speed, Richness, and Data Governance

The Iceberg Spec v3 is built on the solid foundation created by v1 and v2. It represents a strategic move to push Iceberg further into the realm of high-performance, complex data workloads. This includes the following changes.

Deletion vectors for blazing-fast deletes

Iceberg v3 moves beyond positional delete files by introducing binary deletion vectors. This new, more compact format simplifies the process of applying deletes. It is designed to significantly improve read performance, particularly in scenarios with high-frequency updates and a large number of deletes. This is a game-changer for high-throughput CDC pipelines.

Richer data types for complex data

Iceberg v3 supports complex data. To do this, it uses the variant data type. This type is significant when handling semi-structured data, such as JSON. At the same time, the new geometry and geography data types bring first-class support for geospatial analytics. It also adds nanosecond-precision timestamps and support for unknown types, making Iceberg a more flexible and expressive format.

Built-in Row Lineage for auditing and data governance

Iceberg v3 adds support for row-level lineage. This feature tracks a row’s history by embedding metadata like a stable row ID and its last modified sequence number. This feature makes it much easier to implement robust CDC pipelines and provides a clear audit trail for compliance and debugging.

⚠️ Important: Before upgrading, make sure the table is not being accessed by engines or applications that don’t support v3 yet. Once upgraded, downgrading to v1 or v2 is not supported. For this reason, all readers must be compatible with v3. Note that the default version remains v2.

Keeping Iceberg fast: table maintenance

Without proper maintenance, query performance degrades over time. Storage costs climb. Data engineering teams are stretched thin managing routine tasks.

The downside to this is that files deteriorate over time. Iceberg generates new metadata and data files whenever a dataset is modified. This leads to the proliferation of a number of small files that must be opened and merged on the fly to get the complete picture of a dataset. That leads to performance slowdowns over time.

Small files hurt performance. Each file has a fixed open/read cost. Thousands of small files mean thousands of I/O operations. This becomes a bottleneck even with good metadata.

Uncompacted vs compacted data
The same 256 MB, before and after compaction.

Using compaction. You can solve this problem using compaction. To do this, use the optimize() command in Trino to consolidate small files into larger ones:

Snapshot expiration

The next essential task is snapshot expiration. Each time a dataset changes in Iceberg, a new snapshot is created. These snapshots power features like time travel and rollback by preserving a record of the table’s state at each point in time.

While this functionality is useful, especially for auditing and debugging, it can lead to rapid growth in metadata and storage usage.

To deal with this problem, you need to perform regular snapshot expiration. Expiring old snapshots reduces overhead and ensures the system stays efficient. For organizations subject to data regulations like GDPR, regularly removing outdated snapshots is also an important compliance step.

Orphan file removal

Orphan file removal is the next step. When using Iceberg, data files are written before the associated metadata is committed. If a write fails partway through the process, or is never completed, leftover data files can be created.

These files are known as orphan files, and if left unchecked, they can accumulate, adding to storage costs. To deal with this problem, routine cleanup is essential to control and maintain storage costs.

Iceberg vs. Hive, Delta Lake, and Hudi

Data lakehouses are still relatively recent developments, with solutions based on Apache’s Iceberg or Hudi projects or Databricks’s Delta Table format. These three options have similar functionality, but the devil is in the details.

  • All three table formats are open source. Iceberg and Hudi are Apache projects, although Iceberg has the larger developer community.
  • The Delta Table format, while nominally open source, is primarily supported by Databricks, the corporation that first developed it.
  • Amazon’s AWS, Microsoft Azure, Google Cloud, and other data platforms support all three to varying degrees.
  • Ultimately, the right choice depends upon an enterprise’s existing infrastructure and data use cases.

Although Apache Iceberg and Delta Lake are converging on a similar endpoint, they are not identical technologies. You can think of this as an example of convergent evolution, where different approaches to problem-solving result in similar outcomes. Although both achieve efficient storage optimization, data consistency, and performance improvements, the underlying mechanisms they use to achieve this differ.

Hive vs. Delta Lake vs. Hudi vs. Iceberg

Hive

Hudi

Delta Lake

Iceberg

Original table format Created for time/event series data Open source doesn’t support concurrent writers Hidden Partitions
Supports ORC, Parquet, JSON, etc Great for streaming use cases Only supports Parquet Metadata tree is more performant using AVRO
Partition columns must be part of a table Copy on write & on read Can’t change partitioning Partition and table evolution
Relies heavily on the metastore Table evolution, compaction, etc 10 checkpoints every commit; so every 10th write is slower Full DML
Full DML Associated with Databricks Associated with Trino

Challenges of Apache Hive

The majority of the challenges associated with Apache Hive stem from the fact that data in tables is tracked at the folder level. This leads to several challenges including:

  • Slow file list operations: Each time you query data in Hive, the directories need to perform a file list which gets expensive and slow on datasets with many partitions.
  • Inefficient DML: If you’re updating and deleting data frequently, you may experience high latency as Hive requires you to replace the entire file
  • Costly schema changes: If you change your schema in Hive, you have to rewrite the entire data set which is costly and time intensive.
  • No transaction support: It is not possible to guarantee data consistency and integrity for transactions since Hive is not ACID-compliant by default. While Hive offers optional Hive ACID transactional (version-less) tables, it is not universally or consistently supported by major SQL engines.

The decision typically comes down to your technical stack. If you are heavily invested in Databricks, Delta Lake is a natural fit. If you prioritize an open, engine-agnostic approach, Apache Iceberg is often the preferred choice when choosing an open table format.

Getting started with Iceberg

Luckily, moving to Iceberg isn’t an all-or-nothing proposition. With the right foundations, you can gradually move over your most critical workloads, while leaving the rest of your data where it is.

Identify workloads that are good migration candidates

This is where you’ll want to be selective and discerning. The best workloads to start will usually be your most critical workloads. This generally means:

  • Workloads with large data volumes (a single Iceberg table can contain tens of petabytes of data)
  • Data that’s frequently used and accessed
  • Real-world use cases requiring scalability and high performance

Define a maintenance strategy

Luckily, most of these tasks can be automated. We recommend using an Iceberg host that supports Managed Iceberg, which takes the responsibility of implementing these chores off your shoulders. With Managed Iceberg, you can automate key operations with a few clicks as well as configure retention policies for your data.

Start with a migration pilot

Don’t overdo Iceberg feature adoption immediately out of the gate. Instead, start with basic features, such as using hidden partitioning for timestamp-based data and using sorted tables for frequently filtered columns. When you create table definitions, focus on establishing proper partitioning strategies from the start. In other words, keep it simple at first, and then iterate.

Iceberg with Starburst

An Icehouse is a data lakehouse built on Apache Iceberg as the table format and Trino as the query engine. The term was coined by Starburst CEO Justin Borgman to describe this specific combination of technologies. While the concept of a data lakehouse has been around for several years, the Icehouse represents a specific architectural choice that pairs two open source technologies with deep integration, strong community support, and a growing ecosystem of tools and vendors built around them.

Iceberg’s open table format lets you connect your data lakehouse to any query engine. Starburst’s modern data lake analytics platform enables you to connect to any data source. Using Starburst to power the analytics of your Iceberg-based data lake makes data more manageable, optimizes compute and storage investments, and speeds time to insight for more effective decision-making.

While Iceberg and Trino are both well-documented open source projects that a skilled data engineering team can deploy independently, the operational complexity of setting up, configuring, and maintaining the stack over time is significant. Starburst Galaxy abstracts away that complexity by managing the infrastructure for you, providing autoscaling, auto-suspend, and auto-shutdown out of the box, along with features like Warp Speed caching and built-in support for fault-tolerant execution. For organizations moving toward AI-ready data infrastructure, this means the team can focus on building pipelines and delivering value rather than managing cluster configurations and table maintenance schedules.

Start for Free with Starburst Galaxy

Try our free trial today and see how you can improve your data performance.

Start Free

FAQs

Does Apache Iceberg support ACID transactions?

Yes, Apache Iceberg enables full ACID (Atomicity, Consistency, Isolation, Durability) transactions on cloud object storage. This capability ensures that data operations such as inserts, updates, and deletes are processed reliably, preventing data corruption or partial writes. By supporting optimistic concurrency, Iceberg allows multiple users to read and write to the same table simultaneously without locking issues.

Can multiple engines query Iceberg tables?

Apache Iceberg is designed to be engine-agnostic and works well with various query engines like Starburst, Trino, AWS Athena. This flexibility makes Iceberg particularly attractive for environments that use multiple processing engines or have a mixed analytics strategy.

Does Apache Iceberg support schema evolution better than Delta Lake?

Yes, Apache Iceberg offers full schema evolution, while Delta Lake provides partial schema evolution. Additionally, Iceberg supports partition evolution, which Delta Lake does not currently offer. These features make Iceberg more flexible for datasets with frequently changing schemas.

Start for Free with Starburst Galaxy

Try our free trial today and see how you can improve your data performance.
Get in touch