Skip to content

Commit

Permalink
Update website/docs/reference/dbt-jinja-functions/execute.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Sep 6, 2024
1 parent 3bd0446 commit 89d2719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/reference/dbt-jinja-functions/execute.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: "Use `execute` to return True when dbt is in 'execute' mode."

When you execute a `dbt compile` or `dbt run` command, dbt:

1. Reads all of the files in your project and generates a ["manifest"](/reference/artifacts/manifest-json) comprised of models, tests, and other graph nodes present in your project. During this phase, dbt uses the [`ref`](/reference/dbt-jinja-functions/ref) and [`source`](/reference/dbt-jinja-functions/source) statements it finds to generate the DAG for your project. **No SQL is run during this phase**, and `execute == False`.
1. Reads all of the files in your project and generates a [manifest](/reference/artifacts/manifest-json) comprised of models, tests, and other graph nodes present in your project. During this phase, dbt uses the [`ref`](/reference/dbt-jinja-functions/ref) and [`source`](/reference/dbt-jinja-functions/source) statements it finds to generate the DAG for your project. **No SQL is run during this phase**, and `execute == False`.
2. Compiles (and runs) each node (eg. building models, or running tests). **SQL is run during this phase**, and `execute == True`.

Any Jinja that relies on a result being returned from the database will error during the parse phase. For example, this SQL will return an error:
Expand Down

0 comments on commit 89d2719

Please sign in to comment.