Recently, I’ve been working more with dbt again and came across a useful way to handle questionable rows: configure a test to warn and store its failures.
{{ config(
severity = 'warn',
store_failures = true
) }}
select *
from {{ ref('some_model') }}
where ...
With dbt test, this writes the failing rows to a table instead of stopping the whole pipeline. That makes it a handy way to flag invalid or suspicious records and keep them available for investigation.