diff --git a/macros/edr/dbt_artifacts/upload_dbt_models.sql b/macros/edr/dbt_artifacts/upload_dbt_models.sql index 60d36b965..183dd3b03 100644 --- a/macros/edr/dbt_artifacts/upload_dbt_models.sql +++ b/macros/edr/dbt_artifacts/upload_dbt_models.sql @@ -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" @@ -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( { diff --git a/models/dbt_artifacts.yml b/models/dbt_artifacts.yml index 29d7e2e78..7902e97aa 100644 --- a/models/dbt_artifacts.yml +++ b/models/dbt_artifacts.yml @@ -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.