Skip to content
Iceberg Specification, Schema & Internals Last updated: May 29, 2026

Iceberg Metrics Mode

A configuration property in Apache Iceberg that controls the depth of column-level statistics stored in manifest files to optimize query planning and manage metadata size.

iceberg metrics modewrite metadata metricscolumn level statistics

Iceberg Metrics Mode

The Iceberg Metrics Mode is a setting that determines what level of statistical metadata is collected for columns when writing data files. These statistics (such as value counts, null counts, and minimum/maximum bounds) are stored in manifest entries and used by query engines for data skipping. Tuning the metrics mode allows administrators to strike a balance between query pruning efficiency and metadata storage size.

Supported Metrics Modes

Iceberg supports four metrics modes:

Configuring Metrics Modes

Metrics modes are configured using table properties. You can define a default mode for the entire table or override the mode for specific columns:

/* Create a table with custom metrics configurations */
CREATE TABLE logs.web_events (
    event_id string,
    event_payload string,
    response_code int
)
USING iceberg
TBLPROPERTIES (
    /* Set the default mode for all columns to collect counts and truncated bounds */
    'write.metadata.metrics.default' = 'truncate(16)',
    /* Disable all metrics collection for the large payload text column */
    'write.metadata.metrics.column.event_payload' = 'none',
    /* Collect full bounds for response codes to ensure exact filtering */
    'write.metadata.metrics.column.response_code' = 'full'
);

Balancing Metadata Size

For tables with hundreds of columns, collecting full metrics for every field can lead to severe manifest file bloat, increasing query planning time. By setting high-entropy fields (like UUIDs) or large text columns to none or counts, administrators keep manifest files small while retaining bounds on partition and join keys.

๐Ÿ“š Go Deeper on Apache Iceberg

Alex Merced has authored three hands-on books covering Apache Iceberg, the Agentic Lakehouse, and modern data architecture. Pick up a copy to master the full ecosystem.

โ† Back to Iceberg Knowledge Base