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

Iceberg Table Metadata Schema

The JSON schema specification for the Iceberg table metadata file, tracking schemas, partition specs, snapshots, and table properties.

iceberg table metadata schemametadata json schemaiceberg metadata spec

Iceberg Table Metadata Schema

The Iceberg Table Metadata Schema specifies the JSON format of the table metadata file, commonly named with a .metadata.json suffix. This file is the single source of truth for an Iceberg table, describing its schema history, partition configurations, sort orders, and snapshots. When changes occur, a new metadata file is written, and the catalog performs an atomic swap to update the reference pointer.

Schema Fields and Layout

A compliant metadata JSON file contains several mandatory top-level properties:

Example Metadata JSON Fragment

The following is an abbreviated example of the JSON layout:

{
  "format-version": 2,
  "table-uuid": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
  "location": "s3://my-bucket/db/my_table",
  "last-sequence-number": 12,
  "last-updated-ms": 1716982400000,
  "last-column-id": 4,
  "schemas": [
    {
      "type": "struct",
      "schema-id": 0,
      "fields": [
        { "id": 1, "name": "id", "required": true, "type": "long" },
        { "id": 2, "name": "name", "required": false, "type": "string" }
      ]
    }
  ],
  "current-schema-id": 0,
  "partition-specs": [
    {
      "spec-id": 0,
      "fields": []
    }
  ],
  "default-spec-id": 0,
  "snapshots": [
    {
      "snapshot-id": 9876543210123,
      "timestamp-ms": 1716982400000,
      "manifest-list": "s3://my-bucket/db/my_table/metadata/snap-987654321-list.avro",
      "summary": {
        "operation": "append",
        "added-data-files": "2"
      }
    }
  ],
  "current-snapshot-id": 9876543210123
}

📚 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