diff --git a/.changes/unreleased/Features-20240326-203007.yaml b/.changes/unreleased/Features-20240326-203007.yaml new file mode 100644 index 000000000..494cfd07a --- /dev/null +++ b/.changes/unreleased/Features-20240326-203007.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Support the updating of incremental model description after initial creation +time: 2024-03-26T20:30:07.092671+09:00 +custom: + Author: kiwamizamurai + Issue: "1138" diff --git a/dbt/include/bigquery/macros/adapters.sql b/dbt/include/bigquery/macros/adapters.sql index f166e5d05..91653db72 100644 --- a/dbt/include/bigquery/macros/adapters.sql +++ b/dbt/include/bigquery/macros/adapters.sql @@ -100,6 +100,9 @@ {% if for_columns and config.persist_column_docs() and model.columns %} {% do alter_column_comment(relation, model.columns) %} {% endif %} + {% if config.persist_relation_docs() and model.description %} + {{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }} + {% endif %} {% endmacro %} {% macro bigquery__alter_column_comment(relation, column_dict) -%}