From 1ee3a35460c23b7d58807567b1b0a3ea170968f7 Mon Sep 17 00:00:00 2001 From: Logan <9545473+loganstartoni@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:42:26 -0500 Subject: [PATCH] Update builtins.md When running this macro as it was it never gets to the finally part because it always returns when building the `rel` variable. --- website/docs/reference/dbt-jinja-functions/builtins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/dbt-jinja-functions/builtins.md b/website/docs/reference/dbt-jinja-functions/builtins.md index edc5f34ffda..7d970b9d5e1 100644 --- a/website/docs/reference/dbt-jinja-functions/builtins.md +++ b/website/docs/reference/dbt-jinja-functions/builtins.md @@ -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"