|
28 | 28 | ('patch_path', 'string'), |
29 | 29 | ('generated_at', 'string'), |
30 | 30 | ('metadata_hash', 'string'), |
| 31 | + ('unique_key', 'string'), |
| 32 | + ('incremental_strategy', 'string'), |
31 | 33 | ] %} |
32 | 34 | {% if target.type == "bigquery" or elementary.get_config_var("include_other_warehouse_specific_columns") %} |
33 | | - {% do columns.extend([('bigquery_partition_by', 'string')]) %} |
| 35 | + {% do columns.extend([('bigquery_partition_by', 'string'), ('bigquery_cluster_by', 'string')]) %} |
34 | 36 | {% endif %} |
35 | 37 |
|
36 | 38 | {% set dbt_models_empty_table_query = elementary.empty_table(columns) %} |
|
80 | 82 | 'path': node_dict.get('path'), |
81 | 83 | 'patch_path': node_dict.get('patch_path'), |
82 | 84 | 'generated_at': elementary.datetime_now_utc_as_string(), |
| 85 | + 'unique_key': config_dict.get("unique_key"), |
| 86 | + 'incremental_strategy': config_dict.get("incremental_strategy"), |
83 | 87 | 'bigquery_partition_by': config_dict.get("partition_by"), |
| 88 | + 'bigquery_cluster_by': config_dict.get("cluster_by"), |
84 | 89 | } %} |
85 | 90 | {% do flatten_model_metadata_dict.update({"metadata_hash": elementary.get_artifact_metadata_hash(flatten_model_metadata_dict)}) %} |
86 | 91 | {{ return(flatten_model_metadata_dict) }} |
|
0 commit comments