Open aranke opened 1 year ago
@aranke can you please use the template with the ticket description? thank you! :D
Moving to dbt-adapters
, as that's where the associated implementation logic has also moved.
The likely code to replace:
We should then move the "after build" steps to take place regardless of whether we've materialized a table clone or a view:
Housekeeping
Short Description
There's a new macro,
get_replace_sql
, that can be used to replace an existing view with another view atomically.Acceptance Criteria
Rewrite
clone
to use this macro. Ifexisting_relation
andtarget_relation
are both views, this will dispatch to a create or replace macro usingtarget_relation
andsql
.Impact to Other Teams
N/A, but please get Adapters review
Will backports be required?
No
Context
Previous PR: https://github.com/dbt-labs/dbt-core/pull/8355