Lurker News
I've been looking for resources for our data team to apply best practices for testing SQL pipelines (we use DBT) but have not found anything. How do you test SQL pipelines? What patterns, tools and best practices would you recommend? Any good reference material you know of?

Comments (315) 98 threads

Earlier comments
DecoPerson#
In production ;)

But my app is for six users at one site, it’s not mission critical, and the sqlite DB is backed up hourly.
Life’s too short for (unnecessary) testing.

world2vec#
DBT supports testing right out of the gate, you can write little queries and macros to test and validate every column.
EGreg#
Have small databases.

Learn to use IMPORT TABLESPACE in MySQL or just dump and import SQL.
Every time you run a test you set up the mock databases again.

dllthomas#
I've been wanting to put together a property testing framework that lets you specify properties as queries.

Load more comments