[Regression] target.account
has been changed to replace underscores with dashes
#1286
Open
2 tasks done
Labels
Is this a new bug in dbt-core?
Current Behavior
When upgrading from dbt 1.8 to 1.9
{{ target.account }}
is now replaces underscores with dashes. For example, if the target.account is set tosample_company
, then the compiled code now generatessample-company
.If logic is based on this (eg,
{% if target.account|lower == 'sample_account' %}
), this change breaks existing code. This was not outlined in the release notes for upgrading dbt versions.Expected Behavior
Expected that
target.account
would be compared to what is in the profiles.yml, not modified.Steps To Reproduce
sample_company
)select '{{ target.account }}'
target.account
underscores with dashes.Relevant log output
No response
Environment
- dbt: 1.9.1
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: