Bruin Academy

Guide

ClickHouse + Bruin 101

Initialize Bruin's ClickHouse template, then learn what every asset does - from governed seed data and SQL materializations to PostgreSQL replication, checks, tests, and lineage.

Skip ahead

The whole project is one command. Run it, point your coding agent at the Bruin MCP, and it can configure and run everything itself.

$ bruin init clickhouse

Three ways to go from here:

  • Self-service it. Let the agent configure and run the whole thing, and ask it questions as you go.
  • Follow this tutorial. Slower, and it explains why each setting matters - the part an agent will not guess for you.
  • Hand the tutorial to the agent. Point it at this page and have it work through the steps with you.

The template README is the short reference for everything it ships.

What

Use the current clickhouse template to build a small commerce pipeline in ClickHouse. The template is deliberately broad: it gives you versioned reference data, SQL and Python assets, several materialization strategies, a PostgreSQL ingestion branch, governance metadata, quality checks, a SQL unit test, and lineage in one project.

How

Start a local ClickHouse service and initialize the template. Then tour the assets in dependency order: reference and raw data first, then materializations, Python, and the optional PostgreSQL branch. Finish by validating, running the deterministic core, and querying the serving layer. If you want the generic template workflow first, see Using Bruin Templates.

Before you start

Get help & contribute

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.

The signup form is hosted by Brevo. Accept cookies to load it.