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:
Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.