Skip to content
Lubo Bali
All projects

Data pipelinesData quality · Finance

Airflow data quality pipeline

New stock data waits in staging, passes 4 checks, then swaps into production in one move

4checks before any data reaches production

See the code on GitHub (opens in a new tab)

Proof you can check:Code on GitHub

Data pipelines

Write, audit, publish on Iceberg

  1. 1Wait for dataa sensor waits until the upstream table is ready
  2. 2Load to stagingnew data is kept apart from production
  3. 34 checksnot empty, no missing prices, prices above zero, volumes not negative
  4. 4Swap into productionone atomic partition swap, never half-written
  5. 5Clean upthe staging table is dropped

Lubo Bali · lubobali.com

No. 19Write, audit, publish on Iceberg

The problem

Most pipelines write straight to production, so when bad data slips through, the people reading the reports see it before the team does.

What I built

An Airflow pipeline that waits for upstream data, loads it into a staging table, runs 4 checks (not empty, no missing prices, prices above zero, no negative volume) and only then swaps the day into production and cleans up.

Tech & why

Apache Iceberg on S3 with the AWS Glue catalog gives an atomic partition swap: production is never half-written, and any day can be re-run safely.

  • Airflow
  • Apache Iceberg
  • AWS Glue
  • Amazon S3
  • Python

The result

If any check fails, the pipeline stops and production keeps yesterday's good data. Every run is repeatable and can be backfilled.

Similar projects

Have a problem like this? Get your free AI blueprint in about a minute.

Tell me your problem. I'll find a way to build the solution.

Available now

Book a free 30-min call (opens Calendly in a new tab)

No obligation. Pick a time that suits you.

Prefer email?data@lubobali.com