-
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
[Feature] Get dbt retry
working even when there are compilation errors
#10590
Comments
Let's say that you have the following model:
select {{ dbt.string_literal("A") as letter Then you do the following:
None of |
I guess the question we should answer here is whether they should? If we decide not to do this work, it feels like a gotcha worth documenting. |
dbt retry
working with compilation errorsdbt retry
working even when there are compilation errors
@aranke Thanks for discovering this gotcha! I relabeled this as a feature request, since I'd expect a successful parse to be a prerequisite for retry. (Put another way, I wouldn't expect It seems like it would be both a big shift and significant work to generate target artifacts even when parsing doesn't succeed, so I'm going to close this in favor of updating the documentation: dbt-labs/docs.getdbt.com#5964. We can always re-open if @jtcohen6 or @graciegoheen end up wanting this. |
Is this because nothing would ever be built in the run since the parse would fail? In that case should we just retry the prior command? Or have a clearer error message? From a user perspective, I can understand it would be unexpected for |
Is this a new bug in dbt-core?
Current Behavior
If we have a compilation error during
dbt run
,dbt retry
has no nodes to pick up.Expected Behavior
dbt retry
should retry all nodes that were failed/skipped.The fix here might be marking nodes as failed/skipped during compilation errors.
Steps To Reproduce
Step 1: Remove closing }} from one of the Jinja templates
Step 2: Fix model and retry
Relevant log output
No response
Environment
No response
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: