-
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
[CT-1635] Populate adapter_response for tests + sources #2964
Comments
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
I think this may be as simple as using dbt-core/core/dbt/task/freshness.py Line 123 in 75f3e8c
We can look to the Lines 221 to 223 in 75f3e8c
|
One thing we'd need to change to get this working for To illustrate the changes that I think would be needed: a066c1e |
hey @jtcohen6, this feature would be great.
Regarding testing, would the following code change suffice (specifically for source freshness)? sebas-bdr@572f143 |
I would love to have this feature to see how much my tests are costing! I was able to get it working pretty easily for tests by returning the adapter response alongside the dbt-core/core/dbt/task/test.py Line 94 in 89d111a
Same way that the ModelRunner does it: Line 219 in 89d111a
TestRunner.execute .
Maybe not the prettiest solution but wanted to advocate for this being very useful + straightforward! thx dbt devs <3 |
Describe the feature
#2747 requested that dbt log bytes processed for all query types, including tests, source-freshness, and run-operations. This prompted the first part of a solution in #2961: adding an
adapter_response
dict to record database-specific information about the queries dbt has run. In v0.19.0, that will includebytes_processed
for all materializations (model runs, seeds, snapshots).We'd like to record bytes processed for tests and source snapshots, too. What does this really mean?
dbt test
should populateadapter_response
inrun_results.json
dbt source snapshot-freshness
should populateadapter_response
insources.json
(I'm less clear on how we'd manage this in
run-operation
, since it doesn't write torun_results
.)Eventually, this has the potential to dovetail nicely with:
run_results.json
for analysis/aggregation.message
in stdout (maybe via Jinja macro??)Describe alternatives you've considered
Additional context
Who will this benefit?
The text was updated successfully, but these errors were encountered: