Skip to content

elementary.test_results_by_date

View over elementary_test_results left-joined to dbt_invocations. Extracts event_date and env from invocation_vars so they’re queryable as plain columns.

flowchart LR
el1[(elementary.elementary_test_results)] --> me[/elementary.test_results_by_date/]
el2[(elementary.dbt_invocations)] --> me
me -.-> none((terminal — consumed by dashboards))
ColumnDescriptionFormula
idUnique identifier for the test result.t.id
data_issue_idElementary data-issue id.t.data_issue_id
test_execution_idElementary test-execution id.t.test_execution_id
test_unique_idUnique identifier for the test definition.t.test_unique_id
model_unique_idUnique identifier for the tested model.t.model_unique_id
invocation_idJoins to dbt_invocations.t.invocation_id
detected_atTimestamp the test result was detected.t.detected_at
created_atRow-creation timestamp in Elementary.t.created_at
database_nameTest target database.t.database_name
schema_nameTest target schema.t.schema_name
table_nameTest target table.t.table_name
column_nameTest target column (when applicable).t.column_name
test_typedbt_test / anomaly_detection / schema_change.t.test_type
test_sub_typeElementary sub-type.t.test_sub_type
test_results_descriptionHuman description from Elementary.t.test_results_description
ownersOwner metadata.t.owners
tagsTag metadata.t.tags
test_results_queryCompiled query that produced the result.t.test_results_query
otherCatch-all blob from Elementary.t.other
test_nameName of the test.t.test_name
test_paramsParameters passed to the test.t.test_params
severityConfigured severity (warn/error).t.severity
statusResult status (pass/fail/warn/error/skipped).t.status
failuresNumber of failures detected.t.failures
test_short_nameShort alias for the test.t.test_short_name
test_aliasConfigured alias.t.test_alias
result_rowsSample failing rows (Elementary format).t.result_rows
failed_row_countCount of failing rows.t.failed_row_count
event_dateLogical event date the run targeted.JSONExtractString(i.invocation_vars, 'event_date')
envEnvironment (dev/main/…).JSONExtractString(i.invocation_vars, 'env')
commanddbt command executed.i.command
dbt_versiondbt version that ran.i.dbt_version
elementary_versionElementary package version.i.elementary_version
full_refreshWhether the invocation was a full refresh.i.full_refresh
target_namedbt target name.i.target_name
target_schemadbt target schema.i.target_schema
selecteddbt --select argument value.i.selected
run_started_atInvocation start.i.run_started_at
run_completed_atInvocation end.i.run_completed_at