-
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
Model intersection syntax #2167
Comments
Let's prioritize this for the Octavius Catto release. We should use a
This will select models that have:
|
do you mean:
FWIW, I actually kinda like the parentheses approach:
It's easier for me to see what's nested together. But I don't know what the norm is here/whether parens are a bad idea for a CLI arg! |
Anyone who's in a rush solving this (myself included) can use a bit of shell and jq to solve this when invoking
Edit: Added |
@Raalsky I think you indicated that you were interested in picking this up -- is that still the case? If not, we're ready to prioritize this on our end :) |
@drewbanin Sorry for being off. Yeah, I'm still interested. I'll post updates after the weekend, ok? |
Describe the feature
Currently, when you provide two args to the model selection syntax, dbt selects the union of the two parts of the graph:
e.g.
would run all models that have either the
hourly
ormarketing
tag (or both)I'd like a way to only run the intersection of these two parts of the graph:
That would only run models that have both the
hourly
ANDmarketing
tag. And of course∩
is a terrible symbol to use here.Describe alternatives you've considered
We've seen this come up a few times, normally when people want to run the models in a folder that have a certain tag. Our current advice is to add new tags.
The text was updated successfully, but these errors were encountered: