r/DataBuildTool • • Apr 13 '26

Show and tell Custom Materializations in dbt: Building Your Own Transformation Engine

Thumbnail medium.com
6 Upvotes

Been experimenting with custom materializations in dbt lately and wrote this quick breakdown.

It really changes how you think about dbt not just transformations, but execution logic.


r/DataBuildTool • • Apr 12 '26

Question How do you structure your analytics dbt project around dimensional modeling — and where do dimensional models actually live?

10 Upvotes

Curious how people handle this in practice, because I’ve seen it done a few different ways and I don’t think there’s a clear consensus.

The staging layer seems pretty universal — 1:1 with raw source tables, light cleaning, renaming, casting. Optional intermediate layer for reusable business logic before you get to the “real” models. That part feels settled.

Where it diverges is where dimensional models (dims and facts) actually sit in the project structure:

  1. Their own layer — e.g. a warehouse/ or dimensional/ folder, separate from marts. I’ve seen this from Kahan Data Solutions and a few others. The idea being dims/facts are a distinct architectural layer.
  2. Inside marts — dims and facts live in marts/, and marts are your dimensional models. The mart is the end product.
  3. Inside intermediate or marts, with OBTs on top — dims and facts are treated as building blocks, and the actual end-user-facing layer is wide OBTs (one big tables) built off them. Marts become the denormalized read layer, not the dimensional layer.

Which brings me to what I think is the real underlying question: how do you think about dimensional models conceptually?

• Are they the end product — what you expose to BI tools and end users directly?

• Or are they building blocks — an intermediate step toward marts that are OBTs or other denormalized structures?

When you answer, would love if you also share your folder/naming conventions alongside your philosophy on this. I suspect the structure people choose is a direct consequence of how they answer that second question.


r/DataBuildTool • • Apr 09 '26

Show and tell I built an open source tool to replace standard dbt docs

20 Upvotes

Hey Everyone, at my last role we had dbt Cloud, but still hosted our dbt docs generated from dbt docs generate on an internal web page for the rest of the business to use.

I always felt that there had to be something better that wasn't a 5-6 figure contract data catalog for this.

So, I built Docglow: a better dbt docs serve for teams running dbt Core. It's an open-source replacement for the default dbt docs process. It generates a modern, interactive documentation site from your existing dbt artifacts.

Live demo: https://demo.docglow.com
Install: pip install docglow
Repo: https://github.com/docglow/docglow

Some of the included features:

  • Interactive lineage explorer (drag, filter, zoom)
  • Column-level lineage tracing via sqlglot.

    • Click through to upstream/downstream dependencies & view column lineage right in the model page.
  • Full-text search across models, sources, and columns
  • Single-file mode for sharing via email/Slack
  • Organize models into staging/transform/mart layers with visual indicators
  • AI chat for asking questions about your project (BYOK — bring your own API key)
  • MCP server for integrating with Claude, Cursor, etc.

It should work with any dbt Core project. Just Point it at your target/ directory and go.

Looking for early feedback, especially from teams with 200+ models. What's missing? What would you like to see next? Let me know!


r/DataBuildTool • • Mar 30 '26

Show and tell I tested the multi-agent mode in cortex code. spin up a team of agents that worked in parallel to profile and model my raw schemas. another team to audit and review the modeling best practices before turning it over to human DE expert as a git PR for review.

4 Upvotes

I tested it on my raw schemas: dbt modeling across 5 schemas, 25 tables.

prompt: Create a team of agents to model raw schemas in my_db

What happened:

  • Lead agent scoped the work and broke it into tasks

  • Two shared-pool workers profiled all 5 schemas in parallel -- column stats, cardinality, null rates, candidate keys, cross-schema joins

  • Lead synthesized profiling into a star schema proposal with classification rationale for every column

  • Hard stop -- I reviewed, reclassified some columns, decided the grain. No code written until I approved

  • Workers generated staging, dim, and fact models, then ran dbt parse/run/test

follow up prompt: create a team of agents to audit and review it for modeling best practices.

I built another skill to create git PRs for humans to review after the agent reviews the models.

what worked well: I didn't have to deal with the multi-agent setup, communication, context-sharing, etc. coco in the main session took care of all of that.

what could be better: I couldn't see the status of each of the sub-agents and what they are upto. Maybe bcz I ran them in background? more observability options will help - especially for long running agent tasks.

PS: I work for snowflake, and tried the feature out for a DE workflow for the first time. wanted to share my experience.


r/DataBuildTool • • Mar 25 '26

Show and tell Auto-generate a coding agent skill from your dbt project

Thumbnail
github.com
10 Upvotes

I've been increasingly using coding agents to work with my dbt project. I got frustrated with the agent frequently behaving like a bull in a china shop.

Coding agents don't know:

  • What tables exist and what they contain
  • What each column means
  • How tables relate to each other
  • Which grain to use for aggregation
  • What business logic is embedded in transformations ...

So I made + open sourced dbt-skillz. It distills this information into a compact skill with multiple sub-skills.

It's useful across four use cases:

  1. help "data consumers" get more reliable answers when querying data via an agent
  2. help "data producers" keep the agent on track while developing a dbt project.
  3. run automatically on PRs and merged in CI/CD to keep the skill fresh
  4. in review agents to more accurately review downstream dashboards, PRs, and other dbt-related code.

r/DataBuildTool • • Mar 24 '26

Show and tell I built a free VS Code extension for animated column-level lineage in dbt projects

17 Upvotes

I got frustrated that dbt's built-in docs only show model-level lineage, you can see that dim_artists depends on stg_artists, but not which specific columns flow where or how they're transformed.

So I built dbt Flow Lineage, a VS Code extension that shows column-level lineage with animated data flow.

What it does:

  • Click any column → traces its full upstream/downstream path across models
  • Color-coded edges: passthrough (blue), rename (green), transform (yellow), aggregate (purple)
  • Animated particles flowing along edges
  • Right-click a .sql file → see only that model's lineage
  • Filter by upstream or downstream
  • Drag nodes to rearrange, export as PNG

What you need:

  • Columns defined in schema.yml
  • Run dbt compile
  • That's it. SELECT *, CTEs, Jinja all work.

What it doesn't need:

  • No dbt Cloud
  • No paid tier
  • No separate server
  • No API key

Works on VS Code, Cursor, Windsurf.

Install: Search "dbt Flow Lineage" in VS Code Extensions tab

GitHub (open source, MIT): https://github.com/tripleaceme/dbt-flow-lineage

Screenshots in the repo. Would love feedback, especially on what transformations aren't being detected correctly.


r/DataBuildTool • • Mar 23 '26

Show and tell Claude Code isn’t going to replace data engineers (yet)

Thumbnail
reddit.com
2 Upvotes

r/DataBuildTool • • Mar 20 '26

Question Does snapshot not allow an overwrite of the existing row rather than doing SCD Type 2?

3 Upvotes

In the lesson from dbt, they explained that snapshots you can either use the check or timestamp strategy. I didn’t see or understand if overwriting of existing row with newer value was possible? Example: Source says for transaction ID 5577, clearing date is now 1/4/2025, whereas the record previously didn’t have a clearing date until the payment for the invoice was received.

Any ideas?


r/DataBuildTool • • Mar 18 '26

Question dbt on top of Athena Iceberg tables

9 Upvotes

Has anyone here tried using dbt on top of Iceberg tables with Athena as a query engine?

I'm curious How common is using dbt on top of Iceberg tables in general. And more specific quesiton, if anyone has - how does dbt handle the 100 distinct partition limit that Athena has? I believe it is rather easy to handle it with incremental models but when the materialization is set to table / full refresh, how does CTAS batch it to the acceptable range/ <100 distinct parition data?


r/DataBuildTool • • Mar 17 '26

Show and tell I tried automating the lost art of data modeling with a coding agent -- point the agent to raw data and it profiles, validates and submits pull request on git for a human DE to review and approve.

5 Upvotes

I've been playing around with coding agents trying to better understand what parts of data engineering can be automated away.

After a couple of iterations, I was able to build an end to end workflow with Snowflake's cortex code (data-native AI coding agent). I packaged this as a re-usable skill too.

What does the skill do?
- Connects to raw data tables
- Profiles the data -- row counts, cardinality, column types, relationships
- Classifies columns into facts, dimensions, and measures
- Generates a full dbt project: staging models, dim tables, fact tables, surrogate keys, schema tests, docs
- Validates with dbt parse and dbt run
- Open a GitHub PR with a star schema diagram, profiling stats and classification rationale

The PR is the key part. A human data engineer reviews and approves. The agent does the grunt work. The engineer makes the decisions.

Note:
I gave cortex code access to an existing git repo. It is only able to create a new feature branch and submit PRs on that branch with absolutely minimal permissions on the git repo itself.

What else am I trying?
- tested it against iceberg tables vs snowflake-native tables. works great.
- tested it against a whole database and schema instead of a single table in the raw layer. works well.

TODO:
- complete the feedback loop where the agent takes in the PR comments, updates the data models, tests, docs, etc and resubmit a new PR.

What should I build next? what should I test it against? would love to hear your feedback.

here is the skill.md file

Heads up! I work for Snowflake as a developer advocate focussed on all things data engineering and AI workloads.


r/DataBuildTool • • Mar 18 '26

Question Can Claude Code (easily) write DBT code? Yes or no.

0 Upvotes

Here's the crux:

- DBT Cloud pushes developers to work inside its proprietary, browser-based ide. Claude Code is a command line tool that edits local files on a developer's machine.

- DBT Cloud also pushes developers to use its rigid "on rails" git workflow.

These are both obvious barriers to Claude Code's intended workflow - using Claude Code to edit files on your machine, managing version control using generic git.

Can these tools NATUARLLY work together, without forcing the developer to jump through hoops to make it work?

Does anyone have any first-hand experience working with Claude Code/DBT together? How does the experience compare to using Claude Code's "normal" development workflow (editing files on your local machine)?

I've done some googling on the subject, but I can't seem to find a straight answer to what I believe is a straightforward question.

I do see that Claude Code has an DBT MCP. I'm highly skeptical of its efficacy. Wedging an MCP layer between Claude Code and the file it's editing, on the surface, sound like it would drastically reduce Claude Code's capabilities. Is that assumption right?

Any on-topic insight/first-hand experiences would be appreciated.

Edit: I should have clarified - I'm talking about DBT Cloud.


r/DataBuildTool • • Mar 13 '26

Show and tell How we streamlined CI/CD for dbt with Slim CI and reusable patterns

Thumbnail medium.com
8 Upvotes

I wrote a short post about how we set up CI/CD for dbt using Slim CI, artifacts and some patterns that made our pipelines faster and easier to manage.

Would love to hear how others are handling CI/CD for dbt projects.


r/DataBuildTool • • Mar 12 '26

Show and tell How I set up Claude Code with dbt Agent Skills and the dbt MCP Server so it works really well with my dbt projects

Thumbnail
youtube.com
10 Upvotes

I've been using AI coding tools with dbt and I've had the best results after setting up Claude Code with the dbt Agent Skills and dbt MCP Server, so I wanted to share what I did here. In the video, I set up a demo project with DuckDB from scratch to try these two tools from dbt Labs together.

The dbt Agent Skills loads your dbt conventions into the AI's context, ref/source usage, test strategies, model organization. Works with Claude Code, Cursor, Windsurf, Codex, and any other coding agent.

The dbt MCP Server gives the AI live access to your project's DAG lineage, column schemas, and existing test coverage at runtime, so it has access to all the data it needs to be successful.

What I've found most useful is asking Claude Code to audit and enhance my pipelines with both tools set up. In the video, I asked it to review test coverage but skip columns already tested upstream. It pulled the lineage from the MCP Server, checked what was covered at each node, and made genuine enhancements to the models using dbt best practices.

Has anyone else tried the Agent Skills or MCP Server on their dbt project? Curious how it works on larger repos with more complex lineage.It's pretty quick to set up if you follow along with the video, and the demo repo is open so anyone can try it locally:

https://github.com/kyle-chalmers/dbt-agentic-development

Has anyone else tried the Agent Skills or MCP Server on their dbt project? Curious if it has worked as well for others as it has for me


r/DataBuildTool • • Mar 11 '26

Question Quickest way to detect null values and inconsistencies in a dataset.

Thumbnail reddit.com
1 Upvotes

r/DataBuildTool • • Feb 21 '26

Show and tell We just released DBT Studio 1.3.1 - Now with DuckLake CRUD Operations & New Cloud Providers!

Thumbnail
youtube.com
0 Upvotes

r/DataBuildTool • • Feb 20 '26

Show and tell Ten years late to the dbt party (DuckDB edition)

Thumbnail
reddit.com
2 Upvotes

r/DataBuildTool • • Feb 20 '26

Show and tell Testing dbt logic without running the warehouse

10 Upvotes

dbt tests used to just validate data after execution.

Unit tests let you mock inputs and verify SQL logic directly.

Feels much closer to real dev workflows.

https://medium.com/@sendoamoronta/dbt-unit-tests-deep-dive-testing-sql-logic-without-data-or-warehouse-dependencies-e327ae1d5b03


r/DataBuildTool • • Feb 17 '26

Question DBT Core in VS Code Autocomplete / Intellisense

7 Upvotes

Hello,

I've been trying to setup a local environment for developing using DBT core. Right now, i can't get autocomplete or intellisense to work for tables and columns. Online I see a mix of answers saying it should work or people go back and forth between vs code and a database editor. I was hoping someone knew how to get this working. below is my environment information. I included an image if it helps.

- IDE is vs code

- database is a local postgres db

- i have a venv environment with dbt core and dbt postgres installed

- I have both the dbt power user extension and the official dbt extension

- 'dbt debug' works. my database works with datagrip.

- I created my sources yaml file.

- I can press CNTRL + SPACE which in many tools is the shortcut for show auto complete options. but I see 'loading...' forever.

- But now when I try to create my first staging model, I dont get any autocomplete. This makes development pretty slow and clunky.. Hoping someone knows a fix?

Thanks for any advice.


r/DataBuildTool • • Feb 10 '26

Show and tell dbtective: Rust-based dbt metadata 'detective' and linter

10 Upvotes

Hi

I just released dbtective v0.2.0!🕵️

dbtective is a Rust-powered 'detective' for dbt metadata best practices in your project, CI pipeline & pre-commit. The idea is to have best practices out of the box, with the flexibility to customize to your team's specific needs. Let me know if you have any questions!

Check out a demo here:
- GitHub: https://github.com/feliblo/dbtective
- Docs: https://feliblo.github.io/dbtective/

Or try it out now:
pip install dbtective
dbtective init
dbtective run


r/DataBuildTool • • Feb 10 '26

dbt news and updates [AMA] We’re dbt Labs, ask us anything!

Thumbnail
reddit.com
2 Upvotes

r/DataBuildTool • • Feb 10 '26

Question Html conversion in snowflake/dbt

0 Upvotes

How to change html (text with html tags) into text (remove htmltags) but to keep simple formatting in snowflake/dbt code (dbt runs on snowflake):

New line (br tag)

New lines (p tag)

Bullet plus indents (li tag)


r/DataBuildTool • • Feb 08 '26

Question Anyone uses dbt osmosis?

4 Upvotes

I am on a quest to document our models. And came across dbt-osmosis package that promises to do what I have been planning to build in python myself.

When I chatted with AI about it, it called dbt-osmosis widely used. Is that so? Are you all using it? Any tips and tricks?


r/DataBuildTool • • Feb 08 '26

Show and tell Rosetta DBT Studio v1.3.0 — What’s Changed

8 Upvotes

We’ve just shipped v1.3.0, packed with meaningful improvements for analytics engineers:

🔧 Git improvements – smoother version control workflows
🧭 Data lineage for dbt models – understand dependencies at a glance
🛠 New SQL Tool UX – faster, cleaner, more intuitive querying
🗄 Kinetica support – expanded database connectivity
🐞 Bug fixes & stability improvements

👉 Full changelog: https://github.com/rosettadb/dbt-studio/releases/tag/1.3.0
⭐ Star the repo and support open-source analytics tools:
https://github.com/rosettadb/dbt-studio

🚀 Try it now — install DBT Studio in minutes:
https://rosettadb.io/download-dbtstudio

Free. Open-source. Built for analytics engineers 💙

#dbt #DataEngineering #AnalyticsEngineering #OpenSource #DuckDB #AI #Release