-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-462] [Feature] .yaml
and .yml
extensions are interchangeable for profiles.yml
, etc.
#5002
Comments
I think if we were going to do this, it would have to be for all config type yaml files, i.e. dbt_project.yml, profiles.yml, selectors.yml, packages.yml. We've lifted the restriction against .yaml files in project schema files. It would, oddly, be a bit harder to do for these other files because that code is sprinkled around the codebase. |
I think it's the "file doesn't exist" error that threw me for a loop. If it had just said "use .yml, the .yaml extension is not supported", it would've been an easy fix. Are there command line flags that reference dbt_project, selectors and packages config files that also accept a directory but only look for files with the .yml extension? I imagined this being a very small change to update the code that looks for the profiles.yml in the directory provided to also look for the .yaml extension. |
Something like this: main...DharamLietz-BO:patch-1 |
@DharamLietz-BO This isn't something we're going to prioritize ourselves, but we'd welcome a PR from a community contributor who feels motivated :) Here's what we think a good solution would look like:
Is that something you or another community member might be interested in working on? |
Sure, I'll put together sometime this week probably. Thanks for providing a suggested approach 💯 that all makes sense |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
.yaml
and .yml
extensions are interchangeable for profiles.yml
, etc.
Issue #8738 prompted me to review this issue, and we're re-designating this as a handy feature request rather than a bug. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
I'm interested in getting this done. I can see Had a poke around edit: maybe |
Is there an existing issue for this?
Current Behavior
If you provide the
--profiles-dir
flag and a valid directory with a file namedprofiles.yaml
, dbt will fail to initialize.Expected Behavior
dbt should look for both .yml and .yaml extensions
Steps To Reproduce
dbt --profiles-dir /directory/with/profiles/yaml/file/in/it debug
Relevant log output
Environment
What database are you using dbt with?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: