From 4d299f40441eaf270aaeae4f147143f86a74ba02 Mon Sep 17 00:00:00 2001 From: Mike Alfare <13974384+mikealfare@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:49:27 -0400 Subject: [PATCH] remove manual refresh on dynamic table create (#798) --- .changes/unreleased/Under the Hood-20231010-182904.yaml | 6 ++++++ .../snowflake/macros/relations/dynamic_table/create.sql | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Under the Hood-20231010-182904.yaml diff --git a/.changes/unreleased/Under the Hood-20231010-182904.yaml b/.changes/unreleased/Under the Hood-20231010-182904.yaml new file mode 100644 index 000000000..2ea0b61eb --- /dev/null +++ b/.changes/unreleased/Under the Hood-20231010-182904.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Remove manual refresh of dynamic table when created; Snowflake does this now +time: 2023-10-10T18:29:04.451038-04:00 +custom: + Author: mikealfare + Issue: "798" diff --git a/dbt/include/snowflake/macros/relations/dynamic_table/create.sql b/dbt/include/snowflake/macros/relations/dynamic_table/create.sql index bf84c58cb..8e8f3287f 100644 --- a/dbt/include/snowflake/macros/relations/dynamic_table/create.sql +++ b/dbt/include/snowflake/macros/relations/dynamic_table/create.sql @@ -7,6 +7,5 @@ {{ sql }} ) ; - {{ snowflake__refresh_dynamic_table(relation) }} {%- endmacro %}