Add support for File Selectors and add file selectors to the default method selector list #5241
+36
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves this small gripe: "To this day, I can’t give dbt a file name and hope it figures out what I mean, but instead I still have to remove the .sql at the end."
https://pedram.substack.com/p/we-need-to-talk-about-dbt
and thus fix #5240
Description
I'm adding a
FileSelectorMethod
that uses the name of a .sql file as the way to find model(s) to run via a selector and I added a check to thedefault_method
code that does an automatic determination of which selector method to use that will prefer theFile
selector to theFQN
selector for selector values that end with the string ".sql".Checklist
changie new
to create a changelog entry