-
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
[CT-159] [Bug] Partial parsing fails to find new doc block after git pull
#4146
Comments
git pull
Thanks for the report @jaypeedevlin! I'll see if I can pull together a simple reproduction case. It seems like we you all the way through parsing successfully, but dbt missed adding a Just wondering, are you able to tell if the model + doc block in question in totally new files, or edited files? (I see the branch included 15 files added, 13 files changed) |
git pull
git pull
+1 dbt Cloud user Context of how this came up:
|
I also encountered this error with DBT 1.0.4 after a simple branch change. I was working on my feature branch where I added a file Then I came back to my main branch, which doesn't have the file with docs blocks, to execute some runs that also worked as expected. But when I came back to my feature branch, the
So it looks like DBT didn't notice that the branch change reintroduced the file My workaround was to add a small change in Environment:
|
@jtcohen6 hope this helps, although it seems like my steps to reproduce this are very similar to that of the original issue.
|
I just wanted to add in that I still see this issue come up every few weeks when I'm working across multiple branches. |
I also want to add in that I'm still seeing this issue come up, hope DBT could help to fix this. |
Huzzah! Following @alvare16's instructions, I was able to reliably reproduce this error: -- models/my_model.sql
select 1 as id # my_model.yml
version: 2
models:
- name: my_model
columns:
- name: id
description: "{{ doc('whatever') }}" <!--- my_model.md --->
{% docs whatever %}
cool stuff
{% enddocs %} Steps:
I've only been able to do a little spelunking on this. So far my hunch is that the documentation file ID seems to stick around in the partial parsing (previous save) manifest, even after the file is removed. This causes the file to be re-parsed in the manifest, with no contents, but its file ID is still tracked, so it isn't slated for addition when it's actually added back. |
Is there an existing issue for this?
Current Behavior
After pulling changes from a remote git branch that include new docblocks, I get an error on compile/run:
If I run the same command with
--no-partial parse
, the error disappears and subsequent runs are also fine.Expected Behavior
Being able to run without disabling partial parse
Steps To Reproduce
I don't know if these are exact repro steps, but both time I've encountered this it's been:
dbt compile
I hit the error.Relevant log output
Environment
What database are you using dbt with?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: