Skip to content

Commit

Permalink
Update builtins.md
Browse files Browse the repository at this point in the history
When running this macro as it was it never gets to the finally part because it always returns when building the `rel` variable.
  • Loading branch information
loganstartoni authored Jan 5, 2024
1 parent c5c3770 commit 1ee3a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/reference/dbt-jinja-functions/builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ From dbt v1.5 and higher, use the following macro to extract user-provided argum
-- call builtins.ref based on provided positional arguments
{% set rel = None %}
{% if packagename is not none %}
{% set rel = return(builtins.ref(packagename, modelname, version=version)) %}
{% set rel = builtins.ref(packagename, modelname, version=version) %}
{% else %}
{% set rel = return(builtins.ref(modelname, version=version)) %}
{% set rel = builtins.ref(modelname, version=version) %}
{% endif %}
-- finally, override the database name with "dev"
Expand Down

0 comments on commit 1ee3a35

Please sign in to comment.