Skip to content
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

Add run-operation command to run_results.json #3472

Merged
merged 9 commits into from
Jun 7, 2023
23 changes: 22 additions & 1 deletion website/docs/reference/artifacts/run-results-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,28 @@ sidebar_label: "Run results"

**Current schema**: [`v4`](https://schemas.getdbt.com/dbt/run-results/v4/index.html)

**Produced by:** [`build`](/reference/commands/build) [`compile`](/reference/commands/compile) [`docs generate`](/reference/commands/cmd-docs) [`seed`](/reference/commands/seed) [`snapshot`](/reference/commands/snapshot) [`test`](/reference/commands/test) [`run`](/reference/commands/run)
<VersionBlock lastVersion="1.6">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @aranke I wonder if this should be 1.5? Otherwise both blocks might show up?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I wonder if you could version only the new command for 1.6 like this (which might make the code easier to read):

**Produced by:**
  [`build`](/reference/commands/build)
  [`compile`](/reference/commands/compile)
  [`docs generate`](/reference/commands/cmd-docs)
  [`run`](/reference/commands/run)
 <VersionBlock firstVersion="1.6"> [`run-operation`](/reference/commands/run-operation)</VersionBlock>
  [`seed`](/reference/commands/seed)
  [`snapshot`](/reference/commands/snapshot)
  [`test`](/reference/commands/test)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

Copy link
Contributor

@mirnawong1 mirnawong1 Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to fix this as it's looking like this and snapshots, test, seeds don't appear correctly in v1.5 and lower.

Screenshot 2023-06-07 at 12 02 33

**Produced by:**
[`build`](/reference/commands/build)
[`compile`](/reference/commands/compile)
[`docs generate`](/reference/commands/cmd-docs)
[`run`](/reference/commands/run)
[`seed`](/reference/commands/seed)
[`snapshot`](/reference/commands/snapshot)
[`test`](/reference/commands/test)
</VersionBlock>

<VersionBlock firstVersion="1.6">
**Produced by:**
[`build`](/reference/commands/build)
[`compile`](/reference/commands/compile)
[`docs generate`](/reference/commands/cmd-docs)
[`run`](/reference/commands/run)
[`run-operation`](/reference/commands/run-operation)
[`seed`](/reference/commands/seed)
[`snapshot`](/reference/commands/snapshot)
[`test`](/reference/commands/test)
</VersionBlock>

This file contains information about a completed invocation of dbt, including timing and status info for each node (model, test, etc) that was executed. In aggregate, many `run_results.json` can be combined to calculate average model runtime, test failure rates, the number of record changes captured by snapshots, etc.

Expand Down