-
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
Custom tags #311
Comments
/cc @atjones0011 |
This would be incredibly useful for me and my team. Here's a transcript of what I posted in the DBT Slack group on this topic:
|
@atjones0011 can you elaborate a little bit on this part?
My brain is interpreting that as applying tags to models from the
Is that what you had in mind? |
That's exactly what I was thinking. The tags I have in mind for my particular use case are |
Oh, that is cool. Thanks @atjones0011 ! |
We should do this soon. The primary blocker is #550, which handles the selection of tags. Once that's implemented, it should be exceedingly straightforward to implement this feature. I'll add: we'll probably want to move |
Currently all data tests are tagged with
data
, and all schema tests are tagged withschema
. The test selector supports selecting tests by tag -- that's how schema-only and data-only test runs work in development.YAML has some notion of tags for schema tests. For data tests (and possibly models?) we'll need a way to configure tags with Jinja.
Finally we'll need a way to select tags via the CLI.
Some thought should be given to how tags behave -- a good naive approach given a tag
t
is to include any node that has tagt
, even if it has other tags, and to exclude any node without tagt
. So given tagsdata,schema
, run all tests. This doesn't let you exclude tags or do boolean logic on which tags to run.The text was updated successfully, but these errors were encountered: