Skip to content
Sign in

Iceberg tables (experimental)

Open repositories on staging can be read as Apache Iceberg tables. The hub writes only Iceberg metadata over the canonical Parquet shards. Nothing is copied:

  • every commit is a snapshot;

  • every branch and tag is a ref;

  • every data file is a shard at its existing object key.

Restricted repositories are not published this way yet.

Names

product.cloudIceberg
namespace acmenamespace acme
repository power-tools-eu, table productstable power-tools-eu__products
commitsnapshot (id = first 8 bytes of the commit digest)
tag 2026.09tag ref 2026.09

PyIceberg (REST catalog)

from pyiceberg.catalog import load_catalog
catalog = load_catalog("product-cloud", type="rest", uri="https://api-staging.product.cloud/v1/iceberg")
table = catalog.load_table("acme.power-tools-eu__products")
table.scan().to_arrow()                                            # main
table.scan(snapshot_id=table.snapshot_by_name("2026.09").snapshot_id).to_arrow()  # a tag

The catalog is read-only: tables follow the repository's commits.

All tables of one revision

GET https://api-staging.product.cloud/v1/iceberg/attachments/{namespace}/{repository}?revision=<tag|branch|commit> returns a product.cloud/iceberg-attachment@1: every table of that commit mapped to a pinned metadata file and snapshot id. Attach all tables from it so they come from the same revision.

Engine notes

  • Name mapping. Every table carries a name mapping (schema.name-mapping.default), because canonical shards have no Parquet field ids. Engines that ignore it return wrong data silently (DuckDB: all NULL; Spark: wrong columns). Use the pinned clients below.

  • Locations. PyIceberg and Spark cannot read https:// object URLs. Data files are s3:// locations, and the engine needs the object store's S3 endpoint and read-only credentials. Until the hub vends them, configure them yourself.

  • Tested. These client versions read hub-published tables:

    • PyIceberg 0.12.0 through this catalog;

    • DuckDB 2.0.0 from the published metadata;

    • Spark 4.0.4 with Iceberg 1.12.0, in the format spike.

Trino is not tested yet.

  • Erasure. When an erasure order covers history, snapshots of commits whose shards were removed are expired, and their metadata is deleted.