Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Use fully qualified names in rename for tables and views #1060

Merged
merged 14 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
jinja typo
  • Loading branch information
mikealfare committed May 22, 2024
commit f39276cc18b30c29bf9830c7b2ee549d2ee141c6
2 changes: 1 addition & 1 deletion dbt/include/snowflake/macros/relations/table/rename.sql
Original file line number Diff line number Diff line change
@@ -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 -%}
2 changes: 1 addition & 1 deletion dbt/include/snowflake/macros/relations/view/rename.sql
Original file line number Diff line number Diff line change
@@ -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 -%}
Loading