-
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
[Feature] Include sources in dbt list -s "fqn:*"
#9692
Comments
Potential fix:
|
@jtcohen6 do you know why ^? That’s why the “default” node selection is so verbose. Starting in |
I think we should add sources (and analyses) to ResearchI've only been able to find two resource types that are not included by
Reprex
Additional contextQuoting @jtcohen6 from #8589 (comment):
Including sources within
|
DEFAULT_INCLUDES: List[str] = ["fqn:*", "source:*", "exposure:*", "metric:*", "semantic_model:*"] |
to this:
DEFAULT_INCLUDES: List[str] = ["fqn:*"]
As it currently stands, "exposure:*", "metric:*", "semantic_model:*"
might already be unnecessary.
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. |
Commenting to keep this request alive |
Is this your first time submitting a feature request?
User story
As a developer on a dbt project, I sometimes want to define a selector in terms of "include everything except for ..." so that it is easy to write and includes precisely the desired nodes.
Known examples
catalog.json
file does not contain sources withdbt-postgres 1.7.8
#9678 (comment)One use case is defining a series of selectors that partition a dbt project. To make sure that everything is covered, the final selector would be defined as "everything that isn't one of the previously defined selectors".
Proposed solution
The easiest way to fulfill the user story above is to have a selection method that will select "all nodes". The most natural way to do that would be via
"fqn:*"
(as long as all node / resource types are included).Describe the feature
When running
dbt list -s "fqn:*"
, include all sources in the output.For example, suppose I have project files like described in dbt-labs/docs.getdbt.com#4492 (comment).
If I have the following source definition within
models/_sources.yml
, then I'd expect to be able to use thefqn
method to select it.Describe alternatives you've considered
Currently, sources are not included by the
fqn
method like this:dbt list -s "fqn:*"
Output:
However, they are included in the output of this command:
Output:
Who will this benefit?
Here's an example of creating a default to selector that is meant to include everything except certain models:
#9678 (comment)
The user would like to use
fqn:*
to start with "everything" and then add specific exclusions from there.Are you interested in contributing this feature?
No response
Anything else?
See also: #9693
Related internal Slack thread: https://dbt-labs.slack.com/archives/C05FWBP9X1U/p1709217641798779
The text was updated successfully, but these errors were encountered: