Iceberg File Format API
| Also known as | FormatModel API; pluggable file formats in Iceberg |
|---|---|
| Field | Table formats, data file input and output |
| Introduced | Apache Iceberg 1.11.0 (May 2026) |
| Key parts | FormatModel, FormatModelRegistry, read and write builders, compatibility test kit
|
| Open source implementations | Apache Iceberg Java library (Parquet, ORC, Avro; Spark, Flink, Arrow and generic object models) |
| Related | Apache Parquet, Apache ORC, Open table format, Logical type |
The Iceberg File Format API is a set of Java interfaces in Apache Iceberg that puts every data file format behind one common reader and writer contract, so that engines read and write Iceberg data files through a registry instead of format-specific code. A format supplies a FormatModel, which pairs a file format with an in-memory object model (for example Spark rows or Flink rows) and builds readers and writers for it; the FormatModelRegistry stores the available models.[1] The API shipped in Iceberg 1.11.0 with implementations for Parquet, ORC and Avro.[2][3] Support for additional formats, such as Vortex and Lance, is discussed and prototyped but is not part of any release.
Status
The File Format API is a released part of the Iceberg Java library, not a change to the Iceberg table specification.
- Shipped. The 1.11.0 release notes, for the release of 19 May 2026, list the File Format API interfaces and the Parquet, ORC and Arrow format model implementations.[3] The
org.apache.iceberg.formatspackage is absent at tag apache-iceberg-1.10.0 and present at 1.11.0 and 1.12.0.[4] Iceberg 1.12.0, released on 29 September 2026, carries the same package.[3][5] - Not shipped. No new data file format has been added through the API. At 1.12.0 the Java
FileFormatenumeration lists Puffin, ORC, Parquet, Avro and the metadata JSON file, and Appendix A of the table spec defines type mappings only for Avro, Parquet and ORC.[6][7] A proof-of-concept pull request for Lance through the API was opened in March 2026 as a draft not intended for merge, and was closed.[8] - Documentation. As of November 2026 the versioned Iceberg documentation has no page for the API; a pull request proposing one is open.[9]
Motivation
Before the API, Iceberg's Java code supported Parquet, Avro and ORC through format-specific readers and writers in each engine integration. The proposal issue states that new version 3 features, such as new column types and default values, need changes at the file format level, and that because these changes were made separately per format, not every feature was available for every format. It also names emerging formats, Vortex and Lance, as candidates for use cases such as fast random access.[10]
The announcement post describes the old code as fragmented: Spark, Flink and the generic Java implementation each kept their own format-specific readers, writers and feature handling, with large branching code paths, so that projection, filtering and delete file handling needed separate work for each format and engine pair.[1]
How it works
A FormatModel<D, S> names the FileFormat it handles, the Java class of the rows it produces and consumes (D), and the class of the engine schema (S). It returns a ReadBuilder for an input file and a ModelWriteBuilder for an output file.[5] Engines can define their own object models and register them, which lets custom in-memory representations use Iceberg's file format handling.[5]
Engines then ask the registry for a builder by file format and row class, instead of branching on the format themselves.[1]
// Builders obtained from the registry (method names as given in the announcement post)
FormatModelRegistry.readBuilder(fileFormat, clazz, inputFile);
FormatModelRegistry.dataWriteBuilder(fileFormat, clazz, outputFile);
FormatModelRegistry.equalityDeleteWriteBuilder(fileFormat, clazz, outputFile);
FormatModelRegistry.positionDeleteWriteBuilder(fileFormat, clazz, outputFile);
At 1.12.0 the Iceberg source tree contains format models for Avro, Parquet and ORC, a generic model for Iceberg records, an Arrow model for vectorized reads, and Spark and Flink models.[3][2][11][12] The position delete writer builder is documented as applying to format version 2 tables only, since version 3 tables must not add position delete files and use deletion vectors instead.[13][7]
Compatibility test kit
The announcement post called a Technology Compatibility Kit (TCK) the most important next step, to validate correctness, type support and compatibility of new format implementations.[1] A first TCK was merged in March 2026 and is part of 1.11.0, and further TCK tests (for example for the writer builder) were added for 1.12.0.[14][15]
History
Péter Váry opened the proposal issue and a discussion thread on the Iceberg dev mailing list on 11 February 2025, with a linked design document.[10][16] The first implementation was a single large pull request that changed the interfaces, the format implementations and the engines together; the interfaces were later split into a separate pull request.[17]
In May 2025 a vote on the proposal was called on the dev list; it listed the expected results as the same performance, a formal API, simpler engine and format code, better testability, and the ability to introduce or deprecate file formats with little disruption.[18] Review continued on the design document and pull requests.
On 6 February 2026 Ryan Blue wrote on the dev list that the API was ready to be committed, starting with the interfaces pull request, with the aim of including it in the next release to help unblock the DataFusion Comet integration.[16] The interfaces were merged that day, and the Spark and Flink integrations followed on 17 and 18 February 2026.[11][19][12] The project announced the finalized API on 20 February 2026, and it shipped in 1.11.0.[1][3]
Planned work
The announcement post lists next steps that were not part of the release: moving the Spark Comet reader to a format model so it can live in the Comet repository, a full Vortex integration, completing the TCK, and column families (vertically split files that allow partial updates without rewriting whole files).[1] These are plans, not shipped features.
See also
References
- ↑ 1.0 1.1 1.2 1.3 1.4 1.5 Introducing the Apache Iceberg File Format API. Apache Software Foundation, 2026-02-20.Retrieved 2026-11-22.
- ↑ 2.0 2.1 Core, Data: Implementation of AvroFormatModel (#15254). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ 3.0 3.1 3.2 3.3 3.4 Releases (1.11.0 and 1.12.0 release notes). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ Package org.apache.iceberg.formats (Iceberg 1.11.0 Javadoc). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 5.0 5.1 5.2 Interface FormatModel (Iceberg 1.12.0 Javadoc). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ FileFormat.java (apache-iceberg-1.12.0). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 7.0 7.1 Iceberg Table Spec (format/spec.md at apache-iceberg-1.12.0). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ Core, Data, Lance: Add Lance file format support via File Format API (#15751). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ Docs: Add a File Format API page (#18587). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ 10.0 10.1 File Format API (#12225). GitHub, apache/iceberg, 2025-02-11.Retrieved 2026-11-22.
- ↑ 11.0 11.1 Core, Data, Flink: Moving Flink to use the new FormatModel API (#15329). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ 12.0 12.1 Core, Data, Spark: Moving Spark to use the new FormatModel API (#15328). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ Docs: Document that positionDeleteWriteBuilder is for format-version 2 tables only (#15980). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ Data, Spark, Flink: Add TCK for File Format API (#15441). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ Data: Add TCK for Writer builder in FileFormat API (#16575). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ 16.0 16.1 [DISCUSS FileFormat API proposal]. [email protected], 2025-02-11.Retrieved 2026-11-22.
- ↑ Core: Interface based DataFile reader and writer API (#12298). GitHub, apache/iceberg.Retrieved 2026-11-22.
- ↑ [VOTE File Format API]. [email protected], 2025-05-15.Retrieved 2026-11-22.
- ↑ Core, Data: File Format API interfaces (#12774). GitHub, apache/iceberg.Retrieved 2026-11-22.