-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 #2417
Model intersection syntax #2417
Conversation
I think these unit tests are a great place to start! Let us know if there's anything we can help out with @Raalsky :D |
@drewbanin I was thinking about which syntax do we prefer: |
I think we'll want to go with I do think it would be a good idea to validate these strings. I'd say:
For the last point, left-associativity, this means:
This should be computed as:
The existing union operator (a space) should have lower precedence that the intersection operator, so:
This should compute:
Do you buy all of that? And do you think I missed anything? |
Thanks, a lot! @drewbanin
Do you mean: I think that's everything I should know for now. Thanks |
I sure do! I was using Just updated my comment above for clarity! |
hey @Raalsky - this PR is looking really slick! Just a heads up that we've entered the Release Candidate period for 0.17.0, so I unfortunately don't think we'll be able to get this in for that release. We can definitely get it merged for our next feature release, Let us know when this is ready for review :) |
@drewbanin Yeah, I got notification from pypi 😜 . That's okay. I just want to rebase onto |
Integration tests seem to fail due to hooks tests? I don't know the exact reason. I've also added a few of (unit/integration) tests for concatenation ( I should apply some refactors to selector but let me know what you think. I've switched to Ready for review. |
@beckjake do you have any leads on what's up with this test failure? |
Huh. So, this is one of those "I don't know how this code ever worked" situations... I think it's because of this:
Which should have a |
@beckjake Switch to |
That test passed with no errors on linux and I even checked the log. There are no warnings about the wrong config-version. But running it locally and alone, it fails with that message. Upon inspection, it's obvious that it should fail with the message about the wrong version - it's running in strict mode but the result of the clone will be a project without a I think what's going on here is that we should be calling I just can't wait to see what tests have been silently and incorrectly passing once I flip this flag. |
@Raalsky I've merged that fix in to the |
cf10881
to
069cecb
Compare
c8d8951
to
bf12001
Compare
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.
looks great, let's get this merged for 0.18!
Thanks for your hard work on this one @Raalsky - this is an awesome feature! |
resolves #2167
Description
Extends nodes selection syntax with the intersection operator (
,
). In ex. the intersection of multiple tags:--models tag:abc,tag:def,tag:ghi
which stands for every model which has tagsabc
anddef
andghi
.Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.