Skip to content
Upstream

GLOSSARY, read 10 Nov 2026

ref() in dbt, defined with a sourced example

All glossary termsThe matrix

Definition

The dbt function one model uses to point at another, as in ref('model_a'). dbt reads these calls to build the dependency graph and run models in order. Because the links are explicit in code, they are a reliable source of table-level lineage.

Example from a real tool

Example

dbt's documentation says ref() is how you reference one model within another, so models can be stacked on top of one another.

Where to read more

Sources

  1. docs.getdbt.com/reference/dbt-jinja-functions/ref, read 10 Nov 2026

Last reviewed 10 Nov 2026.