In my dbt project, if I declare a jinja sql variable how can I pass it to a dbt_utils
function?
For example this doesn't work:
{% set exclude_columns = ["col1", "col2", "col3"] %}
SELECT {{ dbt_utils.star(from=ref('table'), except=exclude_columns) }}
FROM {{ ref('table') }}
If I manually add columns to the "except" parameter, it works, but not with the variable. I tried {{ exclude columns }}
as well and same result.