Skip to content

elementary.run_results_by_date

View over dbt_run_results left-joined to dbt_invocations. Extracts event_date and env from invocation_vars for trend analysis without JSON parsing.

flowchart LR
el1[(elementary.dbt_run_results)] --> me[/elementary.run_results_by_date/]
el2[(elementary.dbt_invocations)] --> me
me -.-> none((terminal — consumed by dashboards))
ColumnDescriptionFormula
unique_idUnique identifier for the run resource.r.unique_id
invocation_idJoins to dbt_invocations.r.invocation_id
generated_atManifest-generation timestamp.r.generated_at
created_atRow-creation timestamp in Elementary.r.created_at
nameResource name.r.name
messagedbt status / error message.r.message
statusRun status (success/error/skipped).r.status
resource_typedbt resource type (model/test/…).r.resource_type
execution_timeExecution time in seconds.r.execution_time
execute_started_atExecute step start.r.execute_started_at
execute_completed_atExecute step end.r.execute_completed_at
compile_started_atCompile step start.r.compile_started_at
compile_completed_atCompile step end.r.compile_completed_at
rows_affectedRows affected by the run.r.rows_affected
full_refreshWhether the run was a full refresh.r.full_refresh
compiled_codeCompiled SQL.r.compiled_code
failuresFailure count.r.failures
query_idClickHouse query id.r.query_id
thread_iddbt worker thread.r.thread_id
materializationMaterialisation kind.r.materialization
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
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