Apache Iceberg tables bring transactional database-grade reliability, including ACID transactions, schema evolution, and time travel, to data held in object storage, replacing older technologies like Hive. Iceberg now underpins the foundation of most new data workloads, including AI workloads. Understanding Iceberg in practice means understanding how an Iceberg table is structured, making deliberate choices when the table is created, and keeping up with maintenance as it grows.
This article covers the connections between Iceberg’s catalog, metadata, and data layers, the CREATE TABLE decisions, rewrite-free table population and evolution, and the compaction, snapshot expiration, and monitoring a healthy table needs, whether your team runs that maintenance itself or hands it to a managed service.
Key takeaways
- An Apache Iceberg table is a metadata layer over Parquet, ORC, or Avro files, not a file format itself. It’s the source of a query engine’s ACID transactions, schema and partition evolution, and time travel on object storage data.
- Iceberg’s three layers (catalog, metadata, data) let an engine commit changes atomically and prune files before a scan starts, fixing what Hive’s directory-based tracking misses.
- Decisions made at table creation — schema, partition transforms, sort order, catalog implementation, and table spec version — set the performance ceiling for a table years before anyone notices a slow query.
- Left unmaintained, Iceberg tables accumulate small files and stale snapshots that gradually inflate scan time and storage cost, so compaction and snapshot expiration need to run on a schedule, not only after something breaks.
- Teams can run that maintenance themselves or let a managed service handle compaction, snapshot expiry, and orphan file cleanup on separate compute, trading operational overhead for less infrastructure to own.
What is an Apache Iceberg table?
Apache Iceberg is a table format that sits above files like Parquet or ORC. Parquet, Avro, and ORC define how individual data files are structured. Iceberg sits above those files as a metadata layer that tracks every file belonging to a table, so a query engine can read, write, and reason about the table as a single SQL object instead of a loose directory of files. That distinction between file format and table format is the starting point for understanding the definition of an Apache Iceberg table: the files hold the bytes, and Iceberg holds the structure, schema, and history that make those bytes queryable like a database table.
Iceberg exists because the previous standard for tables on object storage, Hive, has real limitations. Hive tracks a table as a list of directories and relies on file listing to figure out partition membership, which gets slow and error-prone as tables grow. The directory-based Hive table format that most data lakehouses still run on also offers no table-level transactions — Hive 3’s ACID transactional tables exist, but they see limited adoption outside Hive itself — no reliable way to evolve a schema or partition scheme without rewriting data, and no built-in way to see a table’s state at a previous point in time. Iceberg addresses each of these limitations directly, which is a core reason many teams now default to Iceberg for new lakehouse tables rather than extending a Hive-style layout.
How Iceberg tables are structured
Iceberg’s reliability comes from three layers: the catalog layer, the metadata layer, and the data layer. Each layer has a distinct job, and understanding their interaction explains how Iceberg supports ACID transactions, table versioning, time travel, and schema and partition evolution that Hive lacks.
The catalog layer
The catalog is the entry point. It maps a table name to the location of that table’s current metadata file, and it’s the layer responsible for atomic commits: when a write finishes, the catalog swaps a pointer to a new metadata file in a single atomic operation, so readers either see the table before the change or after it, never a partial state.
The metadata layer
Below the catalog sits a chain of metadata files, manifest lists, and manifest files. The metadata file records the table’s schema, partition spec, and snapshot history. Manifest lists group manifests into a snapshot, and manifest files track the individual data files in that snapshot, along with statistics like row counts and column bounds. This is the basis for time travel and incremental scans — Iceberg can reconstruct exactly which files made up the table at any prior snapshot.
The data layer
The data layer is the actual Parquet, ORC, or Avro files. Because Iceberg tracks files individually rather than inferring membership from directory structure, it can support fine-grained partition evolution and hidden partitioning, where the engine applies partition transforms automatically instead of requiring every query to filter on a physical partition column. Trino relies on that same file-level tracking to prune irrelevant files before a scan even starts, which accounts for much of Iceberg’s query performance advantage over Hive.
How Iceberg tables are created
Creating an Iceberg table starts with a standard CREATE TABLE statement, but the choices made at creation time shape how the table performs for years afterward.
CREATE TABLE and schema definition
A CREATE TABLE statement for Iceberg looks similar to any other SQL table definition: column names, data types, and an optional comment or property block. The schema you define here isn’t fixed, since Iceberg supports schema evolution, but getting core data types and nullability right up front avoids unnecessary evolution later.
Partitioning and sort order at creation
Partitioning is where Iceberg tables diverge most from Hive tables. Instead of partitioning by a raw column value, Iceberg supports partition transforms — bucketing, truncation, or date and time functions applied to a column — so the partition scheme can match query patterns without forcing every query to filter on an exact partition value. Sort order, defined alongside partitioning, determines how rows are physically ordered within files, which directly affects the amount of data a query has to scan.
Choosing a catalog implementation
Table creation also means picking a catalog implementation — Hive Metastore, AWS Glue, a REST catalog, or Nessie, among others. The catalog choice determines which engines can read and write the table without a bridge layer, affecting interoperability across a multi-engine stack for as long as the table exists. It’s worth deciding deliberately alongside schema, partitioning, and spec version rather than defaulting to whatever catalog happens to already be running.
Choosing a table spec version
Iceberg has multiple table spec versions. V1 established the baseline format; V2 added row-level deletes via merge-on-read (flagging changed rows instead of rewriting files); and V3 added native deletion vectors (a more efficient way to track those same row-level changes) along with additional capabilities. Picking a spec version at creation time is a tradeoff between broad engine compatibility and access to newer features, and it’s one of the first decisions covered in a practical Iceberg adoption roadmap, alongside identifying which workloads are good first candidates for migration.
How Iceberg tables are built and populated
Once a table exists, building it out means getting data into it and keeping its structure current as requirements change.
Batch and streaming ingestion into Iceberg
Iceberg tables can be populated through batch loads or streaming ingestion, and increasingly through managed ingest paths that land data directly in Iceberg format rather than staging it elsewhere first. Part of operating an Icehouse-style lakehouse is treating ingestion as an ongoing requirement, not a one-time load, so new data arrives in a layout that’s already aligned with the table’s partitioning and sort order.
Schema and partition evolution without rewrites
This is where Iceberg’s metadata layer pays off directly: adding a column, changing a partition transform, or renaming a field updates the table’s metadata without rewriting the underlying data files. Older files are simply read under the schema and partition spec that was active when they were written, while new writes use the current spec. That’s a meaningful operational difference from Hive, where a partition change typically means rewriting the entire table.
Maintaining Iceberg tables over time
Reliability doesn’t end once a table is created and populated. Left unmaintained, Iceberg tables accumulate problems that steadily degrade query performance and inflate storage costs.
Compaction and the small files problem
Frequent small writes, especially from streaming ingestion, leave a table with many small files instead of fewer large ones. Query engines pay a per-file overhead cost, so a table with thousands of small files scans slower than one with the same data in fewer, larger files. Starburst’s benchmarking points toward individual files of around 100 MB or larger, with total partition size in the 1 GB–10 GB range (verify current thresholds before automating), and running compaction regularly to merge small files back together. The performance difference is measurable: in a 1 TB TPC-DS (a standard decision-support benchmark) test, a well-sorted table scanned roughly 2.4 GB and 387 million rows for a query that an unsorted version of the same table answered by scanning roughly 8.09 GB and 1.4 billion rows — about a 70% reduction in data scanned by moving to the sorted table.
Snapshot expiration and orphan file cleanup
Every write to an Iceberg table creates a new snapshot, and old snapshots stick around to support time travel until you expire them. Without expiration, metadata grows indefinitely and storage costs climb. A related task, orphan file cleanup, removes data files that are no longer referenced by any snapshot — typically left behind by failed or canceled writes.
Monitoring table health
Monitoring table health means watching for signs that maintenance is falling behind: rising file counts, growing query latency on tables that haven’t grown proportionally in data volume, and snapshot counts that keep climbing. These signals tell you when compaction or snapshot expiration needs to run, whether that job is triggered manually or on a schedule.
Managed vs. do-it-yourself Iceberg maintenance
You can run Iceberg maintenance yourself: schedule compaction jobs, write snapshot expiration logic, and monitor file counts with your own tooling. That approach works, but it means building and operating infrastructure whose only job is keeping tables healthy, on top of the infrastructure that actually serves queries.
The alternative is letting a managed service handle it. Instead of your team scheduling and monitoring compaction and metadata optimization by hand, a managed layer runs those jobs automatically, on infrastructure that’s separate from your query compute. Starburst, for example, runs compaction, snapshot expiry, and orphan file removal on a dedicated serverless engine that never touches the cluster serving your queries, so maintenance and query performance don’t compete for the same resources. For teams that would rather spend engineering time on data modeling and pipeline logic than on compaction schedules, managed maintenance removes a recurring operational burden without changing the open Iceberg format underneath.
Next steps
If your team is weighing a Hive migration or deciding how much Iceberg maintenance to run in-house, a structured walkthrough goes further than another article. Starburst’s Apache Iceberg in practice workshop covers the same architecture, creation, and maintenance decisions this article lays out, with room to work through your own schema and partitioning choices.
FAQs
What’s the difference between a file format and a table format?
A file format like Parquet, Avro, or ORC defines the byte structure inside a single data file. A table format like Apache Iceberg sits above those files as a metadata layer, tracking which files belong to a table, what schema and partition spec applies to each one, and tracking the table’s state at any prior snapshot. The file format never changes for a given file; the table format is the reason a collection of files behaves like one queryable table.
How does Iceberg support ACID transactions without a traditional database engine?
The catalog layer is the mechanism behind this. Every write produces a new metadata file, and the catalog swaps the pointer to that file in a single atomic operation. A reader either sees the table as it was before the write or as it is after, never a partially written state, which is the same guarantee a transactional database provides.
Do I need to rewrite data when I change a table’s schema or partitioning?
No. Iceberg tracks schema and partition spec changes at the metadata level, so older files continue to be read under the spec that was active when they were written, while new writes use the current spec. That avoids the full-table rewrite that a partition change typically forces on a Hive-style table.
How often should I run compaction on an Iceberg table?
It depends on write patterns, but any table taking frequent small writes, especially from streaming ingestion, needs compaction on a regular schedule, not only when queries start to slow down. The goal is files around 100 MB or larger and partitions in the gigabyte range; letting file counts climb unchecked is the cause of the per-file overhead that slows scans down.
What’s the practical difference between managed and self-run Iceberg maintenance?
Self-run maintenance means scheduling compaction, writing snapshot expiration logic, and monitoring file counts with your own tooling, on top of the infrastructure that already serves queries. Managed maintenance runs those same jobs automatically on separate compute, so maintenance work doesn’t compete with query performance, trading some of that operational ownership for less infrastructure to build and watch.