dbt-labs / dbt-snowflake

dbt-snowflake contains all of the code enabling dbt to work with Snowflake
https://getdbt.com
Apache License 2.0
297 stars 177 forks source link

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

Closed mikealfare closed 5 months ago

mikealfare commented 6 months ago

resolves #1031

Problem

The rename macro for tables and views uses only the identifier. It's expected to use the fully qualified name.

Solution

Update these macros to incorporate the new name into the source relation, thereby preserving the database and schema.

Checklist