Topic

Iceberg & the lakehouse

Table formats in practice: schema evolution, slowly changing dimensions, snapshot expiry, compaction cadence, and repairable history.

I have worked with Apache Iceberg since 2022. The table format matters because it shapes how safely a team can evolve schemas, correct history, compact small files, and expire snapshots. These notes focus on the portable decisions: slowly changing dimension patterns, maintenance cadence, metadata growth, and the recovery path you need before a routine correction turns into an expensive rewrite.

All writing

Tutorial The lakehouse spine Measured on my own hardware

A lakehouse spine: Trino, Iceberg and Polaris, with credentials that expire

Build Trino 483 on Iceberg with Apache Polaris as the REST catalog, then prove the vended S3 credentials cannot read the table next door.

  • Iceberg & the lakehouse
  • Distributed databases

~45 min to a working stack; the credential-vending section is the part that takes the time

Tutorial The lakehouse spine Measured on my own hardware

Bronze, silver, gold on Iceberg: the dbt config that is silently ignored

Build a medallion pipeline with dbt-trino on Iceberg, orchestrate it with Airflow 3, and find the partition spec dbt accepts and discards without a warning.

  • Iceberg & the lakehouse
  • Data quality & contracts

~40 min, most of it waiting on two container builds

Tutorial The lakehouse spine Measured on my own hardware

Iceberg maintenance: 20 files into 1, and a rollback I actually performed

Measure what compaction buys on a small-files partition, then delete 909,968 rows and get them back — and find where the safety net stops.

  • Iceberg & the lakehouse
  • Observability & SLOs

~25 min, and the rollback itself takes under a second

Tutorial The lakehouse spine Measured on my own hardware

Two engines, one Iceberg catalog: StarRocks beside Trino, neither holding a key

Attach StarRocks to the same Polaris REST catalog Trino writes through, measure both on identical data, and check for standing S3 keys.

  • Iceberg & the lakehouse
  • ClickHouse

~20 min, mostly waiting for the StarRocks backend to register