Model versioning with existing unsuffixed model #10416
-
Hello community! When I read this, the pattern is I need to add suffixes to both the v1 (old one) and v2 (new one). If my understanding was not mistaken, this would also create the new models for both model_v1 and model_v2 (i want to avoid the creation the new v1 model, because this incremental model will be quite expensive). Is there anyway that I can use the old model for the v1? Currently the old model is not having suffix. Looks like there is a way to do it but I cannot find any clues or examples on how to use it. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@cyclonstep You can configure |
Beta Was this translation helpful? Give feedback.
@cyclonstep You can configure
yourmodelname_v1
withalias: yourmodelname
. That way, it will not create a new object in the data warehouse, and continue to update the object located in the old namespace.https://docs.getdbt.com/docs/collaborate/govern/model-versions#configuring-database-location-with-alias