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

Essay Notes from production Observed in production

Validate said SUCCESS. The upgrade would have died halfway.

A Hive Metastore 4 upgrade rehearsed on a clone: zero constraints, a validator that passed anyway, and why the plan became blue/green.

  • Iceberg & the lakehouse
  • Apache Spark
  • Observability & SLOs

14 min read

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