-
Notifications
You must be signed in to change notification settings - Fork 440
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
Error deploying project because dbt model names in a manifest.json
are not always unique
#8066
Comments
manifest.json
are not always unique
manifest.json
are not always uniquemanifest.json
are not always unique
There is also versioning models in dbt which causes this issue! https://docs.getdbt.com/docs/collaborate/govern/model-versions#how-to-create-a-new-version-of-a-model |
We should potentially make the unique ID a different thing than the name (before, teh name used to be unique, but now it's not anymore - we should update the model's unique ID to be something other than the name. E.g. project.model_name) |
In this PR I'm avoiding this error by discarding/ignoring models with duplicate names. It will only use the first model for each name. This fix is focused on not throwing an error to unblock users that deploy their project via the UI which deploys all their models. We can open a new ticket to support multiple models with the same name. |
🎉 This issue has been resolved in version 0.921.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
Lightdash assumes that dbt model names are unique. This was true until this PR was merged: dbt-labs/dbt-core#7374 - with this change, Project A can have model
users
and also have a dependency on Project B with a model calledusers
The resulting manifest will have two models with the name
users
but they'll have different unique idsmodel.project_a.users
andmodel.project_b.users
When this happens, Lightdash throws an error when deploying a project project.
The text was updated successfully, but these errors were encountered: