From f172f8c091fb3cb250ee3baa845f38013602e0ca Mon Sep 17 00:00:00 2001 From: Pradeep Srikakolapu Date: Thu, 30 May 2024 10:14:07 -0700 Subject: [PATCH] Update dbt/include/fabric/macros/materializations/models/incremental/incremental.sql Co-authored-by: Jeremy Cohen --- .../macros/materializations/models/incremental/incremental.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/fabric/macros/materializations/models/incremental/incremental.sql b/dbt/include/fabric/macros/materializations/models/incremental/incremental.sql index 10f0248..a172f04 100644 --- a/dbt/include/fabric/macros/materializations/models/incremental/incremental.sql +++ b/dbt/include/fabric/macros/materializations/models/incremental/incremental.sql @@ -3,7 +3,7 @@ {%- set full_refresh_mode = (should_full_refresh()) -%} {% set target_relation = this.incorporate(type='table') %} - {%- set relation = adapter.get_relation(database=this.database, schema=this.schema, identifier=this.identifier) -%} +{%- set relation = load_cached_relation(this) -%} {%- set existing_relation = none %} {% if (relation.type == target_relation.type) and (relation.identifier == target_relation.identifier) and (relation.schema == target_relation.schema) and (relation.database == target_relation.database) %}