Dex can flag late-arriving rows as a cause of a failed dbt test
Version 1.19.2 compares when rows arrived with when two runs started. Missing timestamps leave the diagnosis unconfirmed.
A freshness test can fail because the rows it expected did not arrive until after the build started. Looking at the source later, when those rows are present, can hide the timing problem. Dex v1.19.2 adds a diagnosis for that case: its maintain diagnose command can identify a source whose rows arrived after the failing run began.
Two clocks, two runs
The implementation notes distinguish the time an event happened from the time its row was captured. For a failing completeness or freshness test, Dex uses event time to determine which rows belong in each run's test window. It then checks their capture times against the start of the failing run and the start of the last passing run. Capture time comes from dbt's loaded_at_field or a column configured as the freshness capture basis.
Dex confirms the late-arrival finding when rows in the failing window arrived after that run started and no rows in the passing window met the corresponding late-arrival condition. The comparison with the passing run matters: lateness that also occurred during a pass is not, by itself, a new explanation for the failure. The implementation also excludes from the passing comparison rows that still had not arrived when the failing run began.
When Dex can't tell
The check can return not_checked if it lacks capture times, run times, or a known window. If capture timestamps are missing and the remaining rows don't settle the question, Dex does not report that the rows arrived on time. It runs one count statement per source and accounts for that read in its query budget, according to the implementation notes.
The bundled demo seeds a shipments source where late rows cause a freshness failure. The release also adds an agent-evaluation case that grades the order of tool calls on a separate duplicate-load incident. That is evidence of what the project tests, not a measure of diagnosis accuracy in production. For teams evaluating the new check, the first question is whether their sources record when rows actually arrived; event timestamps alone can't answer it.
sources
- Dex v1.19.2 release notesgithub.com
- Dex implementation notes: diagnose late source arrivalsgithub.com
- Dex demo and agent evaluation changesgithub.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026