-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support reading both yml
and yaml
file extensions for schema configuration files.
#1681
Comments
Thanks @soumyadsanyal! I like the idea of including .yaml in addition to .yml. I think the operative lines of code to change are around here. We may ultimately need to change the find_matching method to accept a list of file patterns instead of just accepting a single string. Last: while this feels like a small change, it's probably something we'll want to do in a minor release (like 0.15.0). This could be a breaking change as dbt might start evaluating |
@drewbanin Interested to pick this up if this is still a priority, as you have mentioned that this could be a breaking change, in order to maintain backward compatibility one of the ways we could proceed is as:
|
hey @sumanau7 - I'm not so concerned about making this a "breaking" change - it's just something I'd want to communicate at release-time. I think we should do the following things:
The annoying part: I don't really want to support both Let me know what you think! |
@drewbanin You are right, supporting both Let's say we receive a positive response and there are no new issues from user asking us to revert the change we can then make it live in the next release. I would say 3 months of warning period and then make the the new change live. (Supporting both .yml and .yaml) |
Hey @sumanau7 - that sounds like a really good approach! Let's go ahead and:
Really good thinking here! Are you interested in sending through a PR for this change? We'd be very helpful to assist you however we can if so :) |
@drewbanin I will start work on this should be able to share a PR with TODO's and basic implementation over the weekend to get early feedback and then can take it forward. |
@drewbanin Does the first draft looks good ? |
This issue was closed but the pull request that was mentioned here didn't solve the issue. It only notified of a change to come. Does anybody know which pull request resolved the issue? Or was it never truly addressed? |
@Luttik This was closed by #2263, which allowed for reading file extensions case-insensitively, and raised a warning if it found any with the Incidentally, that "future version" will actually be the next minor version of dbt (v0.20.0), currently in prerelease. This change is from #3244: |
@jtcohen6 Ah thanks I was looking through the pull request but I must have completely missed the changes to read_files.py... |
Issue: Currently
dbt
checks checks for configuration files inside themodels
folder with theyml
file extension ondbt run
.Problem: This may cause confusion for users that are used to using the official
yaml
file extension for YAML files.Impact: configurations fail to load on
dbt run
, source block definitions aren't parsed, etc.Proposed solution: support reading configuration files with both
yml
andyaml
file extensions, or throw informative exceptions as desired in one case or the other.cc @clrcrl
The text was updated successfully, but these errors were encountered: