You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
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 to sample_company, then the compiled code now generates sample-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
Set account to a value with underscores (sample_company)
Create a model with the code, eg: select '{{ target.account }}'
Run model on versions 1.8 vs 1.9. 1.9 replaces target.account underscores with dashes.
Relevant log output
No response
Environment
- dbt: 1.91
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered:
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.91
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: