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

deprecation warning for duplicate keys in profiles.yml #11296

Open
1 task done
graciegoheen opened this issue Feb 11, 2025 · 1 comment
Open
1 task done

deprecation warning for duplicate keys in profiles.yml #11296

graciegoheen opened this issue Feb 11, 2025 · 1 comment
Labels
user docs [docs.getdbt.com] Needs better documentation
Milestone

Comments

@graciegoheen
Copy link
Contributor

graciegoheen commented Feb 11, 2025

Housekeeping

  • I am a maintainer of dbt-core

Short description

Currently, if you have duplicate keys in your profiles.yml, dbt just uses the last one.

my_profile:
  ...
  
my_profile:
  ...

This pattern - duplicated yaml keys that silently overwrite - is not one we want to continue to support.

We should throw a deprecation warning with associated telemetry for this in dbt-core v1.10, and then eventually remove support entirely.

Acceptance criteria

If you have duplicate top-level keys in profiles.yml - throw a deprecation warning.

@graciegoheen graciegoheen added the user docs [docs.getdbt.com] Needs better documentation label Feb 11, 2025
@graciegoheen graciegoheen added this to the v1.10 milestone Feb 11, 2025
@jeremyyeo
Copy link
Contributor

Similarish - #5114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user docs [docs.getdbt.com] Needs better documentation
Projects
None yet
Development

No branches or pull requests

2 participants