diff --git a/dbt/include/snowflake/macros/relations/table/rename.sql b/dbt/include/snowflake/macros/relations/table/rename.sql index 990fe2c4b..6287c6cab 100644 --- a/dbt/include/snowflake/macros/relations/table/rename.sql +++ b/dbt/include/snowflake/macros/relations/table/rename.sql @@ -1,3 +1,3 @@ {%- macro snowflake__get_rename_table_sql(relation, new_name) -%} - alter table {{ relation }} rename to {{ relation.incorporate(identifier=new_name}) }} + alter table {{ relation }} rename to {{ relation.incorporate(identifier=new_name) }} {%- endmacro -%} diff --git a/dbt/include/snowflake/macros/relations/view/rename.sql b/dbt/include/snowflake/macros/relations/view/rename.sql index ae0b06c58..97a592cf1 100644 --- a/dbt/include/snowflake/macros/relations/view/rename.sql +++ b/dbt/include/snowflake/macros/relations/view/rename.sql @@ -1,3 +1,3 @@ {%- macro snowflake__get_rename_view_sql(relation, new_name) -%} - alter view {{ relation }} rename to {{ relation.incorporate(identifier=new_name}) }} + alter view {{ relation }} rename to {{ relation.incorporate(identifier=new_name) }} {%- endmacro -%}