Sometimes, when working with complex dbt projects, you could fall into a situation where you want to decouple one complex model's logic into multiple models that the final model can then leverage. This practice can help you decrease the complexity of a single model, and have more intermediate models with a piece of modeling or transformation.
This is a good practice when working with dbt, and the tool allows you to create these intermediate models without materializing them into the database you are using. This way you can leverage them while dbt is executing, but you don't waste the storage space. These models use the ephemeral materialization type.
In this lab, you will create an ephemeral dbt model, and you will then create a final full-refresh model. You will then check that the ephemeral one has not been stored in your database.
Upon completion of this lab, you will be able to:
To get the most from this lab, you should have basic knowledge of dbt. To get ready, you can use the following labs: