-
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
[Bug] Macro added twice during partial parsing #4233
Comments
+1 dbt Cloud user (running the IDE on Error raised was (slightly obscured):
Additional information:
|
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers. |
Re-opening. Reprex as reported in #8775:
|
Implementation hints#4773 might have some ideas for implementation. |
This issue still exists. I can reproduce it the same way OP did. |
Thank you for confirming @cegarciar2305 Does it resolve the error for you if you use the --no-partial-parse flag? dbt compile --no-partial-parse This the workaround that that we've been recommending in the meantime for this type of error message. |
Hello @dbeatty10 ! I am also seeing this same issue after upgrading my dbt version to 1.6.17 . |
@jasmin-hemdani What is the output of Do you have any dbt packages installed via |
Unfortunately that does not seem to fix it, but I found that deleting |
I have the same issue... any idea? |
@sgalban-WTW Does it resolve the error for you if you use the --no-partial-parse flag? dbt compile --no-partial-parse If not, does it resolve if you delete your There's a couple ways to do that:
|
HI! It still not working with this flag. I have just deleted the dbt-adapters from my venv and it might be work |
@sgalban-WTW I wouldn't expect that deleting Did you try deleting your |
Hi Team, adding on here on behalf of a dbt Cloud customer as the issue is still around. Customer reported seeing the error happen a few times, albeit randomly. The error seems to only pop up when editing the The current workaround is to:
I was able to reproduce it under certain conditions (similar to the comment here):
It is rather elusive though, sometimes reproducible a few times in a row with the same steps, other times, nothing happens. For me, the error always clears by deleting the The issue has been around since 2021 and it is not always reproducible - is there anything that we can help with / provide in order to help the troubleshoot? |
Hey @wusanny ! My understanding is that deleting the I don't know of anything else that you can help with or provide. Here's the way I've reproduced this error previously: #4233 (comment) And here's some potential implementation hints: #4233 (comment) |
Is there an existing issue for this?
Current Behavior
While in main/master branch, received compilation error:
The error points to the same file twice, seems like the macro in question is duplicated within that file. Could not locate the duplicated entry in the file. The
*.yml
file was clear of duplicates as well.Expected Behavior
No compiler errors, possibly 3 warnings for this user.
Steps To Reproduce
Possible user steps:
Forced error steps:
Relevant log output
Environment
- dbt: 0.21.0
What database are you using dbt with?
redshift
For More Recent Instance:
Relevant log output
Environment
Is this a new bug in dbt-core?
I believe this is a new bug in dbt-core
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
While run, compile or other command for partial parsing received Compilation Error:
Expected Behavior
No error
Steps To Reproduce
Create macros.sql file with 2 macros inside
Create macros.yml with documenation for this 2 macros
Run dbt compile
Change something in macros.yml
Run dbt compile again
Relevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
dbt-adapter: dbt-athena: 1.6.1
Additional Context
No response
The text was updated successfully, but these errors were encountered: