1. dbt Labs Official Documentation
ref function: "The ref function is how you refer to other models in dbt... When you use ref
dbt interpolates the schema/database and identifier for this model into your query. More importantly
dbt uses these refs to automatically build the dependency graph." This establishes that ref is a dbt-managed mechanism.
Source: dbt Docs
"Jinja Functions: ref". Retrieved from https://docs.getdbt.com/reference/dbt-jinja-functions/ref
2. dbt Labs Official Documentation
Building a dbt Project: "When you execute the dbt run command
dbt will first compile your code into executable SQL. Compilation involves... resolving any ref or source calls." This confirms that reference resolution is a distinct compilation step handled by dbt.
Source: dbt Docs
"How dbt works". Retrieved from https://docs.getdbt.com/docs/introduction/how-dbt-works
3. dbt Labs Official Documentation
Troubleshooting: Common errors include "Compilation Error... dbt was unable to find a model with the name...". This type of error message explicitly demonstrates that dbt is the tool identifying and reporting the issue with the model reference.
Source: dbt Docs
"FAQs: Troubleshooting". Retrieved from https://docs.getdbt.com/faqs/troubleshooting (This page discusses common errors
including compilation exceptions related to missing refs).