diff --git a/dbt/include/snowflake/macros/relations/dynamic_table/create.sql b/dbt/include/snowflake/macros/relations/dynamic_table/create.sql index 92fc53a26..f8a6ea4d7 100644 --- a/dbt/include/snowflake/macros/relations/dynamic_table/create.sql +++ b/dbt/include/snowflake/macros/relations/dynamic_table/create.sql @@ -73,7 +73,7 @@ create dynamic iceberg table {{ relation }} target_lag = '{{ dynamic_table.target_lag }}' warehouse = {{ dynamic_table.snowflake_warehouse }} - external_volume = '{{ dynamic_table.catalog.external_volume }}' + {{ optional('external_volume', dynamic_table.catalog.external_volume) }} catalog = '{{ dynamic_table.catalog.name }}' base_location = '{{ dynamic_table.catalog.base_location }}' {{ optional('refresh_mode', dynamic_table.refresh_mode) }} diff --git a/dbt/include/snowflake/macros/relations/dynamic_table/replace.sql b/dbt/include/snowflake/macros/relations/dynamic_table/replace.sql index f7ea0619d..1a28eebad 100644 --- a/dbt/include/snowflake/macros/relations/dynamic_table/replace.sql +++ b/dbt/include/snowflake/macros/relations/dynamic_table/replace.sql @@ -72,7 +72,7 @@ create or replace dynamic iceberg table {{ relation }} target_lag = '{{ dynamic_table.target_lag }}' warehouse = {{ dynamic_table.snowflake_warehouse }} - external_volume = '{{ dynamic_table.catalog.external_volume }}' + {{ optional('external_volume', dynamic_table.catalog.external_volume) }} catalog = '{{ dynamic_table.catalog.name }}' base_location = '{{ dynamic_table.catalog.base_location }}' {{ optional('refresh_mode', dynamic_table.refresh_mode) }}