Remove docs build jinja-macros
article thumbnail

How to get started with dbt

Christophe Blefari

Jinja templating — Jinja is a templating engine that seems to exist forever in Python. By default you can recognise a Jinja syntax with the double curly brackets—e.g. {{ something }}. a macro — a macro is a Jinja function that either do something or return SQL or partial SQL code.

article thumbnail

dbt Core, Snowflake, and GitHub Actions: pet project for Data Engineers

Towards Data Science

dbt (data build tool) facilitates modularization of SQL queries, enabling the reuse and version control of SQL workflows, just like software code is typically managed. The important features of dbt are Jinja and macros that you can weave into SQL, enhancing its impact and reusability. You need to create a workflow .yml

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Data Vault 2.0 with dbt Cloud

dbt Developer Hub

You can think of these Raw Vault components as LEGO bricks: they are modular and you can combine them in many different ways to build a wide variety of different, cohesive structures. dbt's macros feature is a lifesaver in terms of templating your code. Data Vault follows the insert-only principle with incremental loading strategy.

Cloud 52
article thumbnail

So You Want to Build a dbt Package

dbt Developer Hub

They’re easy to install, accessible and at the end of the day, it’s just SQL (with sprinklings of git and jinja). So I challenge you after reading this article to test out your skillsets, think about the code that you find yourself reusing again and again, and build a package. So let’s get started on your journey.

article thumbnail

How we cut our tests by 80% while increasing data quality: the power of aggregating test failures in dbt

dbt Developer Hub

Aggregating test failure results using Jinja macros and pre-configured metadata to pull together high level summary tables. Building views on top of the base table to split tests by owner or severity, and creating visualizations using our tool of choice. It should be noted that this framework is for dbt v1.0+ on BigQuery.

article thumbnail

Use App Refresh to run Grouparoo with dbt

Grouparoo

Tracking dbt run metadata If you aren’t currently keeping track of metadata from your dbt runs, you can use a macro along with an on-run-end hook to generate one automatically. In this file, we used Jinja and SQL to build out a dbt_meta table. status ~ " node: " ~ res. unique_id ~ " message: " ~ res. error = ns.

article thumbnail

How I Study Open Source Community Growth with dbt

dbt Developer Hub

We build a product based on the standards, conventions, and capabilities that are created there, and at least 70% of our engineering time is spent in contribution. For more information about defining sources, take a look at the Sources page in the dbt docs. Once I build that, I'm likely to change this model into a table.