Skip to content
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-273] [Bug] modifying snapshot files with multiple snapshots causes error (partial parsing) #4771

Closed
gshank opened this issue Feb 23, 2022 · 1 comment · Fixed by #4773
Assignees
Labels
bug Something isn't working partial_parsing
Milestone

Comments

@gshank
Copy link
Contributor

gshank commented Feb 23, 2022

If you modify a snapshot file with multiple snapshot blocks, and then do 'dbt run', you see the error "dbt found two resources with the name "date_orders_snapshot". Running with "--no-partial-parse" will re-parse the entire project and then you can run again.

The partial parsing code does not handle multiple snapshot blocks.

@github-actions github-actions bot changed the title [Bug] modifying snapshot files with multiple snapshots causes error (partial parsing) [CT-273] [Bug] modifying snapshot files with multiple snapshots causes error (partial parsing) Feb 23, 2022
@gshank gshank self-assigned this Feb 23, 2022
@jtcohen6
Copy link
Contributor

Nice find! Could this also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working partial_parsing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants