Guide: Using Macros to Select Different Table Names in Development and Production


#1

I ran into an issue when I was originally setting up dbt due to my development environment’s table names differing from the production table names. Drew showed me how to solve the issue with the help of macros. I documented in this post how it works and am sharing it here for posterity:

Thanks as always for the help Drew!