Skip to content

elementary.daily_test_summary

Aggregates Elementary test results by event_date × env × target_name. Filters out invocations with an empty event_date and orders descending by date.

flowchart LR
el1[(elementary.elementary_test_results)] --> me[/elementary.daily_test_summary/]
el2[(elementary.dbt_invocations)] --> me
me -.-> none((terminal — consumed by dashboards))
ColumnDescriptionFormula
event_dateLogical event date being tested.JSONExtractString(i.invocation_vars, 'event_date')
envEnvironment (dev/main/…).JSONExtractString(i.invocation_vars, 'env')
target_namedbt target name.i.target_name
total_testsTotal tests executed for this date/env.COUNT(*)
tests_passedNumber of tests that passed.SUM(CASE WHEN t.status = 'pass' THEN 1 ELSE 0 END)
tests_failedNumber of tests that failed.SUM(CASE WHEN t.status = 'fail' THEN 1 ELSE 0 END)
tests_warnedTests that returned warn.SUM(CASE WHEN t.status = 'warn' THEN 1 ELSE 0 END)
tests_erroredTests that errored.SUM(CASE WHEN t.status = 'error' THEN 1 ELSE 0 END)
tests_skippedTests that were skipped.SUM(CASE WHEN t.status = 'skipped' THEN 1 ELSE 0 END)
total_failuresSum of failure counts across tests.SUM(t.failures)
total_failed_rowsSum of failed-row counts across tests.SUM(t.failed_row_count)
anomaly_testsCount of anomaly-detection tests.SUM(CASE WHEN t.test_type = 'anomaly_detection' THEN 1 ELSE 0 END)
schema_testsCount of schema-change tests.SUM(CASE WHEN t.test_type = 'schema_change' THEN 1 ELSE 0 END)
dbt_testsCount of regular dbt tests.SUM(CASE WHEN t.test_type = 'dbt_test' THEN 1 ELSE 0 END)
first_test_atEarliest test detection timestamp.MIN(t.detected_at)
last_test_atLatest test detection timestamp.MAX(t.detected_at)
invocation_countNumber of distinct dbt invocations.COUNT(DISTINCT t.invocation_id)
latest_run_completed_atLatest invocation end-time.MAX(i.run_completed_at)