Jump to content

Apache Iceberg

From Open Lakehouse Wiki
Apache Iceberg
Developer Apache Software Foundation
Latest release 1.12.0
(2026-09-29)
Written in Java (reference implementation)
Type Open table format
License Apache License 2.0
Website iceberg.apache.org
Repository github.com/apache/iceberg
Related Delta Lake, Apache Hudi, Apache Parquet, Iceberg REST catalog
Last verified 22 November 2026 against the Apache Iceberg releases page (1.12.0), the Iceberg table spec and the ASF incubator record.

Apache Iceberg is an open table format for large analytic tables stored as files in a distributed file system or object store. The Iceberg specification describes how a table's schema, partitioning and data files are tracked in metadata files, so that several engines can read and write the same table with transactional guarantees.[1] Iceberg is a common table layer in an open lakehouse, where data stays in open file formats such as Apache Parquet and is shared between engines such as Apache Spark, Trino and DuckDB.

How it works

Apache Iceberg tracks individual data files instead of directories. Table state is held in a metadata file that records the schema, partition configuration, properties and snapshots. Each snapshot points to manifest files, and each manifest lists data files together with their partition values and column statistics.[1]

Every change to an Iceberg table writes a new metadata file and replaces the old one with an atomic swap. Writers work optimistically: a writer prepares its change, then commits by swapping the table's metadata pointer from the version it started from to the new version. If another commit happened first, the writer must retry against the new current version. Readers use the snapshot that was current when they loaded the table and do not take locks.[1]

The atomic swap of the metadata pointer is performed by a catalog. Catalog types supported by the Iceberg Spark integration include a REST catalog, the Hive Metastore and a directory-based Hadoop catalog,[2] and Iceberg also provides a JDBC catalog.[3] The REST catalog is an HTTP protocol defined by the Iceberg project,[4] described further in Iceberg REST catalog. Catalog services such as Apache Polaris and Unity Catalog are covered in their own articles.

Features

Snapshots and time travel

Each write to an Apache Iceberg table creates a new snapshot. Snapshots are the basis for reader isolation, time travel queries and rollback. Branches and tags are named references to snapshots, each with its own retention policy.[5]

In Spark SQL, Iceberg supports time travel with the TIMESTAMP AS OF and VERSION AS OF clauses. VERSION AS OF accepts a snapshot ID or a branch or tag name.[6]

-- Iceberg 1.12.0 with Spark SQL
SELECT * FROM prod.db.events TIMESTAMP AS OF '2026-11-01 00:00:00';
SELECT * FROM prod.db.events VERSION AS OF 10963874102873;
SELECT * FROM prod.db.events VERSION AS OF 'audit-branch';

Hidden partitioning

Apache Iceberg produces partition values from column values, for example the day of a timestamp column, and records the relationship in table metadata. Queries filter on the source column and Iceberg skips files that cannot match. Users do not need to know how the table is partitioned or add a separate partition filter, as they would with a Hive-style partition column.[7]

Schema and partition evolution

Apache Iceberg supports adding, dropping, renaming, reordering and widening columns, including fields in nested structures. Schema changes are metadata changes and do not rewrite data files. Columns are tracked by unique IDs, so a change to one column does not change the values read from another.[8] The partition layout of a table can also change in place, for example from daily to hourly partitions, without creating a new table.[8]

Format versions

The Iceberg specification is versioned. The format version increases when a feature breaks forward compatibility, meaning older readers would not read the newer table correctly. Versions 1, 2 and 3 are complete and adopted; version 4 is under development and not formally adopted.[1]

Format version Main additions (per the spec)
1 Analytic tables built on immutable Parquet, Avro and ORC files
2 Row-level deletes through delete files; stricter writer requirements
3 New types (nanosecond timestamps, variant, geometry, geography, unknown), column default values, multi-argument transforms, row lineage, binary deletion vectors, table encryption keys
4 (in development) Restructured metadata tree, combined data file and deletion vector entries, relative locations, table constraints; new equality deletes no longer allowed

History

Iceberg was developed at Netflix. The proposal to the Apache Incubator described it as a table format designed to improve on the Hive table layout, and stated that it was under active development at Netflix.[9] The project entered the Apache Incubator on 16 November 2018 and graduated to a top-level Apache project on 20 May 2020.[10]

Apache Iceberg 1.12.0 was released on 29 September 2026. That release removed Spark 3.4 support.[11]

Use in an open lakehouse

In an open lakehouse, Apache Iceberg tables sit on object storage, and a data catalog holds the pointer to each table's current metadata file. Because the table state is defined by the specification and not by one engine, a table written by one engine can be read by another that implements the same format version. Pipelines that move data through layers, such as the Medallion architecture, can use Iceberg tables at each layer.

Engine support

Connectors for Apache Spark, Apache Flink and Apache Hive are maintained in the main Iceberg repository, with a separate runtime artifact for each supported engine version.[12] Trino reads and writes Iceberg tables through its Iceberg connector,[13] and DuckDB reads them through its iceberg extension.[14] The Iceberg project also maintains implementations in Python (PyIceberg), Rust and Go in separate repositories.[15][16][17]

Limitations

Apache Iceberg tables need regular maintenance. Snapshots accumulate until they are expired, and data files are not deleted while any retained snapshot still references them. Each commit also writes a new metadata file, so tables with frequent commits, such as streaming tables, may need old metadata files cleaned up.[18]

Support for newer features depends on the engine. A table can be kept on an older format version so that engines without support for newer features can still use it.[1]

See also

References

  1. ↑ 1.0 1.1 1.2 1.3 1.4 Iceberg Table Spec. Apache Software Foundation.Retrieved 2026-11-22.
  2. ↑ Spark Configuration. Apache Software Foundation.Retrieved 2026-11-22.
  3. ↑ JDBC. Apache Software Foundation.Retrieved 2026-11-22.
  4. ↑ REST Catalog Spec. Apache Software Foundation.Retrieved 2026-11-22.
  5. ↑ Branching and Tagging. Apache Software Foundation.Retrieved 2026-11-22.
  6. ↑ Spark Queries. Apache Software Foundation.Retrieved 2026-11-22.
  7. ↑ Partitioning. Apache Software Foundation.Retrieved 2026-11-22.
  8. ↑ 8.0 8.1 Evolution. Apache Software Foundation.Retrieved 2026-11-22.
  9. ↑ IcebergProposal. Apache Incubator wiki.Retrieved 2026-11-22.
  10. ↑ Iceberg Project Incubation Status. Apache Software Foundation.Retrieved 2026-11-22.
  11. ↑ Releases. Apache Software Foundation.Retrieved 2026-11-22.
  12. ↑ Multi-Engine Support. Apache Software Foundation.Retrieved 2026-11-22.
  13. ↑ Iceberg connector. Trino.Retrieved 2026-11-22.
  14. ↑ Iceberg Extension. DuckDB.Retrieved 2026-11-22.
  15. ↑ apache/iceberg-python. GitHub.Retrieved 2026-11-22.
  16. ↑ apache/iceberg-rust. GitHub.Retrieved 2026-11-22.
  17. ↑ apache/iceberg-go. GitHub.Retrieved 2026-11-22.
  18. ↑ Maintenance. Apache Software Foundation.Retrieved 2026-11-22.