mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
🩹 Fix loop_vars when there is no variable
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
{%- if sql_query -%}
|
||||
{{ sql_query | join('union all') }}
|
||||
{%- else -%}
|
||||
select '' as var_name, null as var_value
|
||||
where var_value is not null
|
||||
select '' as var_name, '' as var_value
|
||||
limit 0
|
||||
{%- endif -%}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user