← All writing
Data

From fragmented BI to a modern lakehouse

Eleven data sources, one warehouse, and analyst turnaround that went from days to minutes.

Eigensu Engineering6 min read

The request was for a better BI tool. The third dashboard we were shown had a caveat written into its title, and the fourth had two. That is usually the real diagnosis: people had stopped trusting the numbers and started annotating them.

The problem was never the BI tool

Eleven sources fed reporting, and each analyst had built their own path from raw table to answer. The paths disagreed in small, defensible ways, which is far worse than disagreeing loudly:

  • Three different definitions of an active customer, all of them reasonable in isolation.
  • Revenue recognised at order in two dashboards and at fulfilment in three others.
  • Time zones applied at query time by some pipelines and at ingest by others.

Swapping the visualisation layer would have rendered exactly the same disagreements in a nicer typeface.

Contracts before pipelines

We wrote the definitions down first, as code, and made them the only sanctioned way to compute those numbers. The warehouse work followed the contract rather than the other way round.

metrics/active_customer.sql
-- The single sanctioned definition. Referenced, never copied.-- Owner: Commercial Ops · Reviewed: quarterly SELECT customer_idFROM   fct_ordersWHERE  fulfilled_at >= DATEADD(day, -90, CURRENT_DATE)  AND  status = 'FULFILLED'          -- not 'PLACED'  AND  channel <> 'INTERNAL_TEST'GROUP BY customer_idHAVING COUNT(*) >= 1;

The comment about ownership is not decoration. A metric with no named owner drifts within two quarters, because the first person with a good reason to bend it will bend it and nobody has standing to object.

A data platform is an agreement about definitions that happens to have storage attached. Get the agreement wrong and the storage cannot save you.

11 → 1
Sources to one warehouse
2 days → 4 min
Typical analyst turnaround
38
Contracted metric definitions

Cost, honestly

Warehouse spend went up. It went up by less than the analyst hours it returned, but anyone promising that a consolidation reduces infrastructure cost is selling something. The saving is in time-to-answer and in decisions that stop being re-litigated, and those are the numbers worth putting in the business case.

Written by
Eigensu Engineering
← Back to all writing
Get started

Rather have us fix it than read about it?

Tell us which process is eating the most hours. We'll map it, scope it, and show you what the automated version looks like.

Start a project