Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] target.account has been changed to replace underscores with dashes #11174

Open
2 tasks done
mbdataminr opened this issue Dec 20, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working triage

Comments

@mbdataminr
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • 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

  1. Set account to a value with underscores (sample_company)
  2. Create a model with the code, eg:
    select '{{ target.account }}'
  3. 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

@mbdataminr mbdataminr added bug Something isn't working triage labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant