Technology · Transformation

dbt, so every metric
has a single definition.

dbt turns the raw data in your data warehouse into clean tables, with versioned, tested and documented SQL. We use dbt Core, the open source version, on the platforms we build.

SQLOpen sourceTestsDocumentation

THE TOOL

dbt in brief.

Once the data is loaded into the data warehouse, it has to be cleaned, joined and turned into metrics. dbt organises that work. Each transformation is a SQL file, called a model, that describes a table to produce. dbt works out the execution order, runs the queries in the data warehouse and checks the result. It is the “T” of ELT: it ingests nothing, it transforms what is already there.

What changes is the method. The code lives in Git, every change is reviewed by a colleague, tests run on every change and the documentation is written next to the SQL. dbt Core is open source and free: you only pay for your data warehouse’s compute. dbt Cloud, the vendor’s hosted offering, is paid and adds an interface and a scheduler.

OUR PRACTICE

What we build with dbt.

01

A model shared across several brands.

For a luxury group, the media data of more than 20 maisons goes through the same campaign naming rules and is consolidated in a single model.

02

A Finance team’s metrics.

ARR and movements, retention cohorts, sales pipeline, renewals: at a software vendor, every figure in the report comes out of a dbt model.

03

Documentation that follows the code.

At a luxury maison, the sheet for each field is generated from dbt and LookML. A check blocks deployment if the documentation no longer matches the SQL.

04

One model for disparate files.

15 distributor file formats, 11 markets: an ingestion application and dbt bring everything down to a single sales model in BigQuery.

IN PRACTICE

For whom, and for whom not.

dbt is a good choice if…

  • Your data is in a cloud data warehouse and your teams know SQL.
  • The same metric gives different results depending on the dashboard.
  • You want to know where a figure comes from and what breaks if a table is changed: that is lineage.
  • You want to be able to change provider or data warehouse without rewriting everything.

Look elsewhere if…

  • You are looking for a tool to ingest data: dbt connects to no source, you need a connector upstream.
  • Nobody reads or writes SQL, and you want a graphical interface.
  • You need real-time processing, event by event.
  • You have a single file to reprocess once a month: a spreadsheet will do.

IN PRODUCTION

Our implementation rules.

A dbt project is judged on how readable it is six months later. These rules are the same from one client to the next.

  • Three layers, always the same: a cleaned copy of each source, intermediate models, then the tables exposed to dashboards.
  • Naming that states the role: a model’s prefix indicates its layer and its nature, fact table or dimension.
  • Tests on every key: uniqueness and non-null values on all keys, consistency between tables, source freshness.
  • No table exposed without a description: every column delivered to the business is documented in the code, following the docs-as-code principle.
  • Continuous integration: every change is built and tested in a separate environment before reaching production.
  • Incremental models for large volumes: only what has changed is recomputed.

FREQUENTLY ASKED QUESTIONS

What we are often asked.

dbt Core or dbt Cloud?

We deploy dbt Core, run by Airflow or by continuous integration: nothing to pay the vendor, and everything stays in your accounts. dbt Cloud makes sense for a team that wants to manage no infrastructure. The detail is in our comparison dbt Core or dbt Cloud.

Do we need developers to use dbt?

You need people comfortable with SQL, not software developers. An analyst who already writes queries picks up dbt without changing jobs. This is the territory of analytics engineering.

Can you take over an existing dbt project?

Yes. We start by reading the project: models with no tests, tables nothing uses any more, metrics computed several times. Then we put things back in order in stages, without interrupting the dashboards already in place.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project