Skip to content

Commit

Permalink
Update ref.md (#4052)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?

Adding that you need to set cross project dependencies when using 2
arguments with projects. Per feedback from @b-per πŸ™‡πŸ»


Co-authored-by: Matt Shaver <[email protected]>
  • Loading branch information
runleonarun and matthewshaver authored Sep 8, 2023
1 parent e8d73fe commit 2869a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/reference/dbt-jinja-functions/ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ select * from {{ ref('model_name') }}

### Two-argument variant

There is also a two-argument variant of the `ref` function. With this variant, you can pass both a namespace (project or package) and model name to `ref` to avoid ambiguity.
You can also use a two-argument variant of the `ref` function. With this variant, you can pass both a namespace (project or package) and model name to `ref` to avoid ambiguity. When using two arguments with projects (not packages), you also need to set [cross project dependencies](/docs/collaborate/govern/project-dependencies).

```sql
select * from {{ ref('project_or_package', 'model_name') }}
Expand Down

0 comments on commit 2869a9d

Please sign in to comment.