-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Results in sources.json missing contextual info present in run_results.json #3804
Comments
a question for @barryaron and @jtcohen6 -- should this information keep living in For what it's worth, we do use the sources.json file in the Source Freshness view in dbt Cloud, but I don't know that that's a great reason to preserve this behavior |
I agree that it feels odd to have a dedicated artifact just for one task (though that's also what In the context of data quality reporting (e.g. the exposure status tile), both source freshness and passing/failing tests feel like the crucial inputs, so it's tempting to say they're both just kinds of tests. But I think there are valid reasons to continue treating / storing source freshness results separately:
I think we can still accomplish both of those if source freshness is a subset of |
fair enough, i buy all of it! |
Establish parity between
sources.json
andrun_results.json
, especially for per-result information:thread_id
execution_time
timing
The relevant classes here:
https://github.com/dbt-labs/dbt/blob/ab06149c81d36889cdf9dff5b5903ae0d7be92e2/core/dbt/contracts/results.py#L91-L108
https://github.com/dbt-labs/dbt/blob/ab06149c81d36889cdf9dff5b5903ae0d7be92e2/core/dbt/contracts/results.py#L255-L301
It looks like the source result classes inherit from generic node results, and then the output classes do not. So it's possible that the results themselves already include these properties, and it's just a matter of adding them into the output.
The text was updated successfully, but these errors were encountered: