-
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/support sql dot jinja #3498
Conversation
@jtcohen6 Can you help me with some questions during this process? First one: I couldn't find |
@jtcohen6 Yet another question. I see that a unittest is failing (seems like the same unittest in 5 different scenarios) but I fail to see how this is affected by my changes. Could you point me in the right direction to get me to use your test flow with breakpoints? Simply running pytest will not work in the debt scenario :/ |
@Luttik Thanks for the contribution! As far as debugging test failures: You can insert In this case, it's a pretty thorny unit test that failed, since it "magically mocks" a python dictionary into a set of model I think I found a straightforward fix, by changing this line: if iter_self.extension != '.sql': Voila:
|
Ok so the tests succeed. The remaining steps are:
I am doing this as a hobby but I expect to be able to work on this in the coming weekend. |
So the good thing is that the test suite now reflects the issues that I was experiencing in an actual project. The bad aspect is that I need to unravel the monster method that is |
@Luttik Sorry for the delay on my end here. The failing tests you're running into are pretty thorny. I can try to take a look when I have a chance to put on my serious debugging hat. |
@jtcohen6 Yeah, I thought the same. It looked to me that it might even be beneficial to start with refactoring the Would you guys be open to refactors like that? |
@jtcohen6 I think this would still be a great addition. Could you spare some resources to help me implement this? |
There's definitely a lot of code that's changed since this PR was opened. I'd also say that, insofar as this one got bogged down in tricky unit tests, which mock manifests and the like — we're actively looking into refactoring our approaches to unit/integration testing, to prioritize usability. @dbt-labs/core-language I leave this one up to you — some of the changes that @Luttik is proposing may yield dividends, by introducing the kinds of abstractions / separations (i.e. between file loading vs. manifest construction) that we've been discussing over the past few weeks. |
Do you still want help with this? The code has changed so you'd probably need to freshen this up. |
Hé @gshank, I think that this would be a very relevant change. You'd expect something like this to be a fairly small change too... I can definitely freshen this up, but that only seems relevant if https://github.com/orgs/dbt-labs/teams/core-language has some resources to spend on this too as @jtcohen6 indicated. |
This PR has been marked as Stale because it has been open for 180 days with no activity. If you would like the PR to remain open, please remove the stale label or comment on the PR, or it will be closed in 7 days. |
resolves #3484
Description
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.