-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for sources (#282)
* Add documentation for sources * Small change to fix nit and give new commit sha * Fix missing and extra fields * Remove field that doesn't exist everywhere * Change environment variables * Add back in TEST_ENV_VAR for old release
- Loading branch information
Showing
13 changed files
with
364 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: exposures | ||
description: Base model for data about exposure exections. One row per node per run. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: type | ||
description: '{{ doc("type") }}' | ||
- name: owner | ||
description: '{{ doc("owner") }}' | ||
- name: maturity | ||
description: '{{ doc("maturity") }}' | ||
- name: path | ||
description: '{{ doc("path") }}' | ||
- name: description | ||
description: '{{ doc("description") }}' | ||
- name: url | ||
description: '{{ doc("url") }}' | ||
- name: package_name | ||
description: '{{ doc("package_name") }}' | ||
- name: depends_on_nodes | ||
description: '{{ doc("depends_on_nodes") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: invocations | ||
description: Base model for data about the invocations of dbt. One row per run. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: dbt_version | ||
description: '{{ doc("dbt_version") }}' | ||
- name: project_name | ||
description: '{{ doc("project_name") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: dbt_command | ||
description: '{{ doc("dbt_command") }}' | ||
- name: full_refresh_flag | ||
description: '{{ doc("full_refresh_flag") }}' | ||
- name: target_profile_name | ||
description: '{{ doc("target_profile_name") }}' | ||
- name: target_name | ||
description: '{{ doc("target_name") }}' | ||
- name: target_schema | ||
description: '{{ doc("target_schema") }}' | ||
- name: target_threads | ||
description: '{{ doc("target_threads") }}' | ||
- name: dbt_cloud_project_id | ||
description: '{{ doc("dbt_cloud_project_id") }}' | ||
- name: dbt_cloud_job_id | ||
description: '{{ doc("dbt_cloud_job_id") }}' | ||
- name: dbt_cloud_run_id | ||
description: '{{ doc("dbt_cloud_run_id") }}' | ||
- name: dbt_cloud_run_reason_category | ||
description: '{{ doc("dbt_cloud_run_reason_category") }}' | ||
- name: dbt_cloud_run_reason | ||
description: '{{ doc("dbt_cloud_run_reason") }}' | ||
- name: env_vars | ||
description: '{{ doc("env_vars") }}' | ||
- name: dbt_vars | ||
description: '{{ doc("dbt_vars") }}' | ||
- name: invocation_args | ||
description: '{{ doc("invocation_args") }}' | ||
- name: dbt_custom_envs | ||
description: '{{ doc("dbt_custom_envs") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: model_executions | ||
description: Base model for data about model executions. One row per model execution. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: was_full_refresh | ||
description: '{{ doc("was_full_refresh") }}' | ||
- name: thread_id | ||
description: '{{ doc("thread_id") }}' | ||
- name: status | ||
description: '{{ doc("status") }}' | ||
- name: compile_started_at | ||
description: '{{ doc("compile_started_at") }}' | ||
- name: query_completed_at | ||
description: '{{ doc("query_completed_at") }}' | ||
- name: total_node_runtime | ||
description: '{{ doc("total_node_runtime") }}' | ||
- name: rows_affected | ||
description: '{{ doc("rows_affected") }}' | ||
# BigQuery only - dbx requires all documented fields to exist in the model | ||
# - name: bytes_processed | ||
# description: '{{ doc("bytes_processed") }}' | ||
- name: materialization | ||
description: '{{ doc("materialization") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: alias | ||
description: '{{ doc("alias") }}' | ||
- name: message | ||
description: '{{ doc("message") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: models | ||
description: Staging model that contains metadata about model executions. One row per node per run. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: database | ||
description: '{{ doc("database") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: depends_on_nodes | ||
description: '{{ doc("depends_on_nodes") }}' | ||
- name: package_name | ||
description: '{{ doc("package_name") }}' | ||
- name: path | ||
description: '{{ doc("path") }}' | ||
- name: checksum | ||
description: '{{ doc("checksum") }}' | ||
- name: materialization | ||
description: '{{ doc("materialization") }}' | ||
- name: tags | ||
description: '{{ doc("tags") }}' | ||
- name: meta | ||
description: '{{ doc("meta") }}' | ||
- name: alias | ||
description: '{{ doc("alias") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: seed_executions | ||
description: Base model for data about seed executions. One row per seed execution. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: was_full_refresh | ||
description: '{{ doc("was_full_refresh") }}' | ||
- name: thread_id | ||
description: '{{ doc("thread_id") }}' | ||
- name: status | ||
description: '{{ doc("status") }}' | ||
- name: compile_started_at | ||
description: '{{ doc("compile_started_at") }}' | ||
- name: query_completed_at | ||
description: '{{ doc("query_completed_at") }}' | ||
- name: total_node_runtime | ||
description: '{{ doc("total_node_runtime") }}' | ||
- name: rows_affected | ||
description: '{{ doc("rows_affected") }}' | ||
- name: materialization | ||
description: '{{ doc("materialization") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: alias | ||
description: '{{ doc("alias") }}' | ||
- name: message | ||
description: '{{ doc("message") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: seeds | ||
description: Base model for metadata about seed executions. One row per node per run. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: database | ||
description: '{{ doc("database") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: package_name | ||
description: '{{ doc("package_name") }}' | ||
- name: path | ||
description: '{{ doc("path") }}' | ||
- name: checksum | ||
description: '{{ doc("checksum") }}' | ||
- name: meta | ||
description: '{{ doc("meta") }}' | ||
- name: alias | ||
description: '{{ doc("alias") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: snapshot_executions | ||
description: Base model for data about snapshot executions. One row per snapshot execution. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: was_full_refresh | ||
description: '{{ doc("was_full_refresh") }}' | ||
- name: thread_id | ||
description: '{{ doc("thread_id") }}' | ||
- name: status | ||
description: '{{ doc("status") }}' | ||
- name: compile_started_at | ||
description: '{{ doc("compile_started_at") }}' | ||
- name: query_completed_at | ||
description: '{{ doc("query_completed_at") }}' | ||
- name: total_node_runtime | ||
description: '{{ doc("total_node_runtime") }}' | ||
- name: rows_affected | ||
description: '{{ doc("rows_affected") }}' | ||
- name: materialization | ||
description: '{{ doc("materialization") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: alias | ||
description: '{{ doc("alias") }}' | ||
- name: message | ||
description: '{{ doc("message") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: snapshots | ||
description: Base model for metadata about seed executions. One row per node per run. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: database | ||
description: '{{ doc("database") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: depends_on_nodes | ||
description: '{{ doc("depends_on_nodes") }}' | ||
- name: package_name | ||
description: '{{ doc("package_name") }}' | ||
- name: path | ||
description: '{{ doc("path") }}' | ||
- name: checksum | ||
description: '{{ doc("checksum") }}' | ||
- name: strategy | ||
description: '{{ doc("strategy") }}' | ||
- name: meta | ||
description: '{{ doc("meta") }}' | ||
- name: alias | ||
description: '{{ doc("alias") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: sources | ||
description: Base model for data about sources. One row per node per execution. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: database | ||
description: '{{ doc("database") }}' | ||
- name: schema | ||
description: '{{ doc("schema") }}' | ||
- name: source_name | ||
description: '{{ doc("source_name") }}' | ||
- name: loader | ||
description: '{{ doc("loader") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: identifier | ||
description: '{{ doc("identifier") }}' | ||
- name: loaded_at_field | ||
description: '{{ doc("loaded_at_field") }}' | ||
- name: freshness | ||
description: '{{ doc("freshness") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: test_executions | ||
description: Base model for metadata about test executions. One row per test execution. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: was_full_refresh | ||
description: '{{ doc("was_full_refresh") }}' | ||
- name: thread_id | ||
description: '{{ doc("thread_id") }}' | ||
- name: status | ||
description: '{{ doc("status") }}' | ||
- name: compile_started_at | ||
description: '{{ doc("compile_started_at") }}' | ||
- name: query_completed_at | ||
description: '{{ doc("query_completed_at") }}' | ||
- name: total_node_runtime | ||
description: '{{ doc("total_node_runtime") }}' | ||
- name: rows_affected | ||
description: '{{ doc("rows_affected") }}' | ||
- name: failures | ||
description: '{{ doc("failures") }}' | ||
- name: message | ||
description: '{{ doc("message") }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: tests | ||
description: Base model for metadata about test executions. One row per node per run. | ||
columns: | ||
- name: command_invocation_id | ||
description: '{{ doc("command_invocation_id") }}' | ||
- name: node_id | ||
description: '{{ doc("node_id") }}' | ||
- name: run_started_at | ||
description: '{{ doc("run_started_at") }}' | ||
- name: name | ||
description: '{{ doc("name") }}' | ||
- name: depends_on_nodes | ||
description: '{{ doc("depends_on_nodes") }}' | ||
- name: package_name | ||
description: '{{ doc("package_name") }}' | ||
- name: test_path | ||
description: '{{ doc("test_path") }}' | ||
- name: tags | ||
description: '{{ doc("tags") }}' |