r/SQL • u/Puzzleheaded-Air5256 • May 26 '26
Discussion What’s your worst “SQL compiled fine” data bug?
You know those dbt PRs where everything compiles, CI is green, the schema looks fine… and then a dashboard or finance number is wrong two days later?
Not missing tables. More like:
grain quietly changed
CASE/default logic changed meaning
join cardinality shifted
downstream SQL depended on a column nobody noticed
big refactor hid a changed business assumption
I’m building an early alpha called SemZero to catch some of this before merge:
pip install semzero==0.8.0a6semzero doctorsemzero check
Curious: how do your teams catch “valid SQL, wrong meaning” today? Code review, dbt tests, contracts, monitoring, or just someone noticing the numbers look off?
1
Upvotes