diff --git a/dbt/include/snowflake/macros/adapters.sql b/dbt/include/snowflake/macros/adapters.sql index 157738187..e95d474bd 100644 --- a/dbt/include/snowflake/macros/adapters.sql +++ b/dbt/include/snowflake/macros/adapters.sql @@ -248,7 +248,7 @@ {% set sql -%} alter {{ relation_type }} {{ relation }} add column {% for column in add_columns %} - {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }} + {{ adapter.quote(column.name) }} {{ column.data_type }}{{ ',' if not loop.last }} {% endfor %} {%- endset -%} @@ -261,7 +261,7 @@ {% set sql -%} alter {{ relation_type }} {{ relation }} drop column {% for column in remove_columns %} - {{ column.name }}{{ ',' if not loop.last }} + {{ adapter.quote(column.name) }}{{ ',' if not loop.last }} {% endfor %} {%- endset -%}