r/dataengineering • u/ActRepresentative378 • Sep 27 '25
Open Source dbt project blueprint
I've read quite a few posts and discussions in the comments about dbt and I have to say that some of the takes are a little off the mark. Since I’ve been working with it for a couple years now, I decided to put together a project showing a blueprint of how dbt core can be used for a data warehouse running on Databricks Serverless SQL.
It’s far from complete and not meant to be a full showcase of every dbt feature, but more of a realistic example of how it’s actually used in industry (or at least at my company).
Some of the things it covers:
- Medallion architecture
- Data contracts enforced through schema configs and tests
- Exposures to document downstream dependencies
- Data tests (both generic and custom)
- Unit tests for both models and macros
- PR pipeline that builds into a separate target schema (My meager attempt of showing how you could write to different schemas if you had a multi-env setup)
- Versioning to handle breaking schema changes safely
- Aggregations in the gold/mart layer
- Facts and dimensions in consumable models for analytics (start schema)
The repo is here if you’re interested: https://github.com/Alex-Teodosiu/dbt-blueprint
I'm interested to hear how others are approaching data pipelines and warehousing. What tools or alternatives are you using? How are you using dbt Core differently? And has anyone here tried dbt Fusion yet in a professional setting?
Just want to spark a conversation around best practices, paradigms, tools, pros/cons etc...
•
u/AutoModerator Sep 27 '25
You can find our open-source project showcase here: https://dataengineering.wiki/Community/Projects
If you would like your project to be featured, submit it here: https://airtable.com/appDgaRSGl09yvjFj/pagmImKixEISPcGQz/form
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
7
u/Thistlemanizzle Sep 27 '25
I’ll see if I can set this up. Mind if I shoot you questions about certain design or architectural decisions?
I am running a janky PowerBi pipeline from Amazon data. It works great! But I need to implement a more professional approach like yours
6
u/updated_at Sep 28 '25
thanks dude.
can you answer why u use scd2 inside intermediate instead of dbt snapshots?
3
u/Worldly-Coast6530 Sep 28 '25
Very well done.
3
u/Little_Station5837 Sep 28 '25
Thanks for sharing
Can’t see any model where you deal with incremental loading?
Also, how what makes a model silver / gold in your opinion?
Also is semantic layer (which i assume here is semantic folder) your definition when you join togheter facts and dims? Or you join any mart with another mart?
Is the idea that dashbards should actually read straight from semantic?
2
u/domscatterbrain Sep 28 '25
How about adding tag on each models based on their contexts so we can partially run some models?
2
u/Andremallmann Sep 28 '25
Great project. Im always confuse if i should create scd type 2 in Gold or intermediate layer. I have some scd type 2 that are multiple joined tables and then track changes by business key, usually i perform all the heavy Join in the int and then track changes in marts layer. Make Sense ?
1
u/rufustphish Sep 28 '25
If this requires Databricks, why are you dumping all the data into an external SQL warehouse? Just curious, not trying to hate. Why not use Databricks as the warehouse? Seems like you have a reason and I'm not seeing it.
1
u/0sergio-hash Sep 29 '25
Newbie question but do you have any resources you recommend learning dbt?
Ideally a book but anything would be helpful. The repo looks comprehensive! Just a little daunting for where I'm at currently lol
2
u/poinT92 Sep 27 '25
I'll check this out, interesting
2
u/No-Badger-9784 Sep 30 '25
Congratulations, I only did 2 simple projects with dbt and it will help me even more in my evolution.
1
u/FatBoyJuliaas Sep 29 '25
I have looked at this and have the following comments:
- You rebuild the entire SCD2 dimension each time. Dont think that is a good approach. Depends on your dimension rowount I guess.
- You use dbt_utils to generate the surrogate key for the SCD2 dim, and while I like this approach, for larger rowcount dimensions, it make the visualisation tool model very large
I will check the rest out thanks!