-
Notifications
You must be signed in to change notification settings - Fork 944
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
Fix code example for listing exposures based on resource type #5469
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving
@@ -258,7 +258,7 @@ The `exposure` method is used to select parent resources of a specified [exposur | |||
```bash | |||
dbt run --select "+exposure:weekly_kpis" # run all models that feed into the weekly_kpis exposure | |||
dbt test --select "+exposure:*" # test all resources upstream of all exposures | |||
dbt ls --select "+exposure:*" --resource-type snowplow # list all sources of type "snowplow" upstream of all exposures | |||
dbt ls --select "+exposure:*" --resource-type source # list all source tables upstream of all exposures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lines up with the "resource method" section of this page:
Note: This method doesn't work for sources, so use the --resource-type option of the list command instead:
dbt list --resource-type source
And when I looked at the usage of the dbt ls command:
[--resource-type {model,semantic_model,source,seed,snapshot,metric,test,exposure,analysis,default,all}]
Preview
What are you changing in this pull request and why?
Update the code example so it makes more sense.
Caveat: I didn't actually run the code in my proposed changes, but the current example definitely doesn't look right.
Checklist