Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions macros/edr/dbt_artifacts/upload_dbt_models.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
("incremental_strategy", "string"),
("group_name", "string"),
("access", "string"),
("deprecation_date", "string"),
] %}
{% if target.type == "bigquery" or elementary.get_config_var(
"include_other_warehouse_specific_columns"
Expand Down Expand Up @@ -114,6 +115,7 @@
"bigquery_cluster_by": config_dict.get("cluster_by"),
"group_name": config_dict.get("group") or node_dict.get("group"),
"access": config_dict.get("access") or node_dict.get("access"),
"deprecation_date": node_dict.get("deprecation_date"),
} %}
{% do flatten_model_metadata_dict.update(
{
Expand Down
28 changes: 28 additions & 0 deletions models/dbt_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,38 @@ models:
data_type: string
description: Short path of the model file.

- name: patch_path
data_type: string
description: Path to the YAML file that patches this model, if any.

- name: generated_at
data_type: string
description: Update time of the table.

- name: metadata_hash
data_type: string
description: Hash of the captured model metadata for change detection.

- name: unique_key
data_type: string
description: Incremental unique_key from model config, if set.

- name: incremental_strategy
data_type: string
description: Incremental strategy from model config, if set.

- name: group_name
data_type: string
description: dbt group for the model, if assigned.

- name: access
data_type: string
description: Model access level (for example private, protected, or public).

- name: deprecation_date
data_type: string
description: Model deprecation_date property from the dbt graph, if set.

- name: dbt_tests
description: >
Metadata about tests in the project, including configuration and properties from the dbt graph. Each row contains information about a single test.
Expand Down
Loading