MCPcopy Index your code
hub / github.com/apache/iceberg

github.com/apache/iceberg @apache-iceberg-1.11.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release apache-iceberg-1.11.0 ↗ · + Follow
71,585 symbols 535,454 edges 5,679 files 5,512 documented · 8% updated todayapache-iceberg-1.11.0 · 2026-05-20★ 9,013396 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Iceberg

Slack

Iceberg is a high-performance format for huge analytic tables. Iceberg brings the reliability and simplicity of SQL tables to big data, while making it possible for engines like Spark, Trino, Flink, Presto, Hive and Impala to safely work with the same tables, at the same time.

Background and documentation is available at https://iceberg.apache.org

Status

Iceberg is under active development at the Apache Software Foundation.

The Iceberg format specification is stable and new features are added with each version.

The core Java library is located in this repository and is the reference implementation for other libraries.

Documentation is available for all libraries and integrations.

Collaboration

Iceberg tracks issues in GitHub and prefers to receive contributions as pull requests.

Community discussions happen primarily on the dev mailing list or on specific issues.

Building

Iceberg is built using Gradle with Java 17 or 21.

  • To invoke a build and run tests: ./gradlew build
  • To skip tests: ./gradlew build -x test -x integrationTest
  • To fix code style for default versions: ./gradlew spotlessApply
  • To fix code style for all versions of Spark/Hive/Flink:./gradlew spotlessApply -DallModules

Iceberg table support is organized in library modules:

  • iceberg-common contains utility classes used in other modules
  • iceberg-api contains the public Iceberg API
  • iceberg-core contains implementations of the Iceberg API and support for Avro data files, this is what processing engines should depend on
  • iceberg-parquet is an optional module for working with tables backed by Parquet files
  • iceberg-arrow is an optional module for reading Parquet into Arrow memory
  • iceberg-orc is an optional module for working with tables backed by ORC files
  • iceberg-hive-metastore is an implementation of Iceberg tables backed by the Hive metastore Thrift client
  • iceberg-data is an optional module for working with tables directly from JVM applications

Iceberg also has modules for adding Iceberg support to processing engines:

  • iceberg-spark is an implementation of Spark's Datasource V2 API for Iceberg with submodules for each spark versions (use runtime jars for a shaded version to avoid dependency conflicts)
  • iceberg-flink contains classes for integrating with Apache Flink (use iceberg-flink-runtime for a shaded version)
  • iceberg-mr contains an InputFormat and other classes for integrating with Apache Hive

NOTE

The tests require Docker to execute. On macOS (with Docker Desktop), you might need to create a symbolic name to the docker socket in order to be detected by the tests:

sudo ln -s $HOME/.docker/run/docker.sock /var/run/docker.sock

In some cases the testcontainer may exit with an initialization error because of an illegal state exception in the GenericContainer. One work around for this problem is to set selinux into permissive mode before running the tests.

sudo setenforce Permissive
./gradlew ...
sudo setenforce Enforcing

Documentation

For information about building the documentation, see here.

Engine Compatibility

See the Multi-Engine Support page to know about Iceberg compatibility with different Spark, Flink and Hive versions. For other engines such as Presto or Trino, please visit their websites for Iceberg integration details.

Implementations

This repository contains the Java implementation of Iceberg. Other implementations can be found at:

Extension points exported contracts — how you extend this code

Procedure (Interface)
An interface representing a stored procedure available for execution. [41 implementers]
spark/v3.5/spark/src/main/java/org/apache/spark/sql/connector/iceberg/catalog/Procedure.java
Procedure (Interface)
An interface representing a stored procedure available for execution. [41 implementers]
spark/v3.4/spark/src/main/java/org/apache/spark/sql/connector/iceberg/catalog/Procedure.java
UpdateRequirement (Interface)
Represents a requirement for a MetadataUpdate [76 implementers]
core/src/main/java/org/apache/iceberg/UpdateRequirement.java
Payload (Interface)
Interface for an element that is an event payload. Different event types contain different payloads. [10 implementers]
kafka-connect/kafka-connect-events/src/main/java/org/apache/iceberg/connect/events/Payload.java
AwsClientFactory (Interface)
Interface to customize AWS clients used by Iceberg. A custom factory must have a no-arg constructor, and use {@link #ini [8 …
aws/src/main/java/org/apache/iceberg/aws/AwsClientFactory.java
DataGenerator (Interface)
This interface defines test data generator. Different implementations for primitive and complex nested fields are define [14 …
flink/v2.0/flink/src/test/java/org/apache/iceberg/flink/DataGenerator.java
DataGenerator (Interface)
This interface defines test data generator. Different implementations for primitive and complex nested fields are define [14 …
flink/v1.20/flink/src/test/java/org/apache/iceberg/flink/DataGenerator.java
DataGenerator (Interface)
This interface defines test data generator. Different implementations for primitive and complex nested fields are define [14 …
flink/v2.1/flink/src/test/java/org/apache/iceberg/flink/DataGenerator.java

Core symbols most depended-on inside this repo

sql
called by 15377
api/src/main/java/org/apache/iceberg/view/SQLViewRepresentation.java
as
called by 12584
api/src/main/java/org/apache/iceberg/actions/SnapshotTable.java
of
called by 12463
api/src/main/java/org/apache/iceberg/variants/Variant.java
get
called by 11230
api/src/main/java/org/apache/iceberg/Accessor.java
get
called by 5438
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/RowDataWrapper.java
build
called by 4964
core/src/main/java/org/apache/iceberg/InternalData.java
toString
called by 4625
api/src/main/java/org/apache/iceberg/metrics/Timer.java
put
called by 4545
core/src/main/java/org/apache/iceberg/util/Pair.java

Shape

Method 62,525
Class 7,995
Interface 507
Function 448
Enum 110

Languages

Java99%
TypeScript1%
Python1%

Modules by API surface

site/docs/assets/javascript/lottie-player.js578 symbols
api/src/main/java/org/apache/iceberg/types/Types.java204 symbols
parquet/src/main/java/org/apache/iceberg/parquet/ParquetValueReaders.java198 symbols
core/src/main/java/org/apache/iceberg/avro/ValueReaders.java187 symbols
open-api/rest-catalog-open-api.py167 symbols
core/src/test/java/org/apache/iceberg/jdbc/TestJdbcTableConcurrency.java141 symbols
parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java135 symbols
core/src/main/java/org/apache/iceberg/TableMetadata.java130 symbols
core/src/test/java/org/apache/iceberg/catalog/CatalogTests.java124 symbols
spark/v3.4/spark/src/test/java/org/apache/iceberg/spark/TestSparkDistributionAndOrderingUtil.java122 symbols
core/src/main/java/org/apache/iceberg/rest/RESTSerializers.java116 symbols
core/src/main/java/org/apache/iceberg/avro/ValueWriters.java115 symbols

Dependencies from manifests, versioned

mkdocs-awesome-pages-plugin2.10.1 · 1×
mkdocs-macros-plugin1.5.0 · 1×
mkdocs-material9.7.5 · 1×
mkdocs-material-extensions1.3.1 · 1×
mkdocs-redirects1.2.3 · 1×
mkdocs-rss-plugin1.19.0 · 1×
openapi-spec-validator0.8.5 · 1×
pymarkdownlnt0.9.36 · 1×
yamllint1.38.0 · 1×

Datastores touched

(mysql)Database · 1 repos
defaultDatabase · 1 repos
icebergDatabase · 1 repos

For agents

$ claude mcp add iceberg \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact