brooklyn-data / dbt_artifacts

A dbt package for modelling dbt metadata. https://brooklyn-data.github.io/dbt_artifacts
Apache License 2.0
309 stars 113 forks source link

[Bug]: "compile_started_at" and "query_completed_at" times for test get extracted from wrong object resulting in nulls #427

Open TimWitzel opened 2 months ago

TimWitzel commented 2 months ago

Overview

for the test_executions data, the two fields "compile_started_at" and "query_completed_at" are always null.

How to reproduce

Run anything and check the test_executions.

Expected behaviour

Both fields should be properly extracted from the run results.

Screenshots

image

Environment

Results of running dbt --version: dbt core 1.7.11, dbt artifacts 2.6.2 on databricks

Potential Fix

image Seems like there was a copy/paste error. Changing the model.timing to test.timing (for compile started at and query completed at) fixes this. Seems like this was overlooked.

TimWitzel commented 2 months ago

Just saw that there is already a pull request for that: https://github.com/brooklyn-data/dbt_artifacts/pull/420