-
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-3226] [Bug] Compilation Error 'metric.my_project.distinct_customers' depends on 'semantic_model.my_project.orderves' which is not in the graph! #8859
Comments
WorkaroundThe easiest workaround is do a dbt clean More detailed workaroundHere's a workaround that may work in the meantime: Use dbt --no-partial-parse compile Alternatively, delete the |
Did a bit digging and found out that we did not actually properly processed the semantic models in the changed schema files here. Also when we update it we probably need to update all of the things that depends on the semantic model. |
Thank you @ChenyuLInx 🙏 Sounds like we may need to either add |
Resolved via #8865 |
Is this a new bug in dbt-core?
Workaround
The easiest workaround is do a
dbt clean
:More detailed workaround
Here's a workaround that may work in the meantime:
Use
--no-partial-parse
to disable partial parsing:Alternatively, delete the
partial_parse.msgpack
file from yourtarget
directory (for example, viadbt clean
).Current Behavior
I like small finger foods so much that I want to create a semantic model related to them:
After publishing the docs, a colleague reaches out and tells me: the correct spelling is "hors d'oeuvres" not "orderves" 😅
So I change the spelling of my semantic models from "orderves" to "orders" 'cause that seems easiest.
But the next time I do any of the following, I get an error:
Expected Behavior
I should be able to fix my speling misstakes when defining my semantic models (or make other changes) and be able re-run dbt without a compilation error.
Steps To Reproduce
models/orders.yml
seeds/orders.csv
Create
models/metricflow_time_spine.sql
as described here.Run these commands:
Update the name of the semantic model in
models/orders.yml
from "orderves" to "orders". Then try to compile again:Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
This may be related to:
The text was updated successfully, but these errors were encountered: