From 43d73d59c1f8634d505fc9223366e4447beb9bce Mon Sep 17 00:00:00 2001 From: VersusFacit <67295367+VersusFacit@users.noreply.github.com> Date: Tue, 22 Oct 2024 08:55:52 -0700 Subject: [PATCH 1/4] Add url. --- dbt/include/snowflake/macros/relations/table/create.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/snowflake/macros/relations/table/create.sql b/dbt/include/snowflake/macros/relations/table/create.sql index e60b93039..e2141df4d 100644 --- a/dbt/include/snowflake/macros/relations/table/create.sql +++ b/dbt/include/snowflake/macros/relations/table/create.sql @@ -1,7 +1,7 @@ {% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%} {%- if relation.is_iceberg_format and not adapter.behavior.enable_iceberg_materializations.no_warn %} - {% do exceptions.raise_compiler_error('Was unable to create model as Iceberg Table Format. Please set the `enable_iceberg_materializations` behavior flag to True in your dbt_project.yml. For more information, go to .') %} + {% do exceptions.raise_compiler_error('Was unable to create model as Iceberg Table Format. Please set the `enable_iceberg_materializations` behavior flag to True in your dbt_project.yml. For more information, go to https://docs.getdbt.com/reference/resource-configs/snowflake-configs.') %} {%- endif %} {%- set materialization_prefix = relation.get_ddl_prefix_for_create(config.model.config, temporary) -%} From 5d615088682ab5c897866d2fd0ca49ef84267bfc Mon Sep 17 00:00:00 2001 From: VersusFacit <67295367+VersusFacit@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:58:07 -0800 Subject: [PATCH 2/4] Add docs url to flag itself. --- dbt/adapters/snowflake/impl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt/adapters/snowflake/impl.py b/dbt/adapters/snowflake/impl.py index 89c21f531..3375ba169 100644 --- a/dbt/adapters/snowflake/impl.py +++ b/dbt/adapters/snowflake/impl.py @@ -92,6 +92,7 @@ def _behavior_flags(self) -> List[BehaviorFlag]: "benefits only those actively using it, we've made this behavior opt-in to " "prevent unnecessary latency for other users." ), + "docs_url": "https://docs.getdbt.com/reference/resource-configs/snowflake-configs#iceberg-table-format", } ] From 52702e79c3eed1d5767893598e2ee4d6478babb7 Mon Sep 17 00:00:00 2001 From: VersusFacit <67295367+VersusFacit@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:16:12 -0800 Subject: [PATCH 3/4] Update url in other error for more precision. --- dbt/include/snowflake/macros/relations/table/create.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/snowflake/macros/relations/table/create.sql b/dbt/include/snowflake/macros/relations/table/create.sql index e2141df4d..50bedd78f 100644 --- a/dbt/include/snowflake/macros/relations/table/create.sql +++ b/dbt/include/snowflake/macros/relations/table/create.sql @@ -1,7 +1,7 @@ {% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%} {%- if relation.is_iceberg_format and not adapter.behavior.enable_iceberg_materializations.no_warn %} - {% do exceptions.raise_compiler_error('Was unable to create model as Iceberg Table Format. Please set the `enable_iceberg_materializations` behavior flag to True in your dbt_project.yml. For more information, go to https://docs.getdbt.com/reference/resource-configs/snowflake-configs.') %} + {% do exceptions.raise_compiler_error('Was unable to create model as Iceberg Table Format. Please set the `enable_iceberg_materializations` behavior flag to True in your dbt_project.yml. For more information, go to https://docs.getdbt.com/reference/resource-configs/snowflake-configs#iceberg-table-format') %} {%- endif %} {%- set materialization_prefix = relation.get_ddl_prefix_for_create(config.model.config, temporary) -%} From fcdd15e22cc7d9fd0a4e1c75250008244378692d Mon Sep 17 00:00:00 2001 From: VersusFacit <67295367+VersusFacit@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:17:58 -0800 Subject: [PATCH 4/4] Add changelog. --- .changes/unreleased/Under the Hood-20241118-231637.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/Under the Hood-20241118-231637.yaml diff --git a/.changes/unreleased/Under the Hood-20241118-231637.yaml b/.changes/unreleased/Under the Hood-20241118-231637.yaml new file mode 100644 index 000000000..f787a2a79 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20241118-231637.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Add iceberg docs url to behavior flag. +time: 2024-11-18T23:16:37.926576-08:00 +custom: + Author: versusfacit + Issue: "210"