diff --git a/dbt/include/glue/macros/materializations/incremental/incremental.sql b/dbt/include/glue/macros/materializations/incremental/incremental.sql index cc9b0093..7c0da215 100644 --- a/dbt/include/glue/macros/materializations/incremental/incremental.sql +++ b/dbt/include/glue/macros/materializations/incremental/incremental.sql @@ -54,7 +54,7 @@ {% set build_sql = create_table_as(False, target_relation, sql) %} {% endif %} {% elif existing_relation_type == 'view' or should_full_refresh() %} - {{ glue__drop_relation(target_relation) }} + {{ drop_relation(target_relation) }} {% if file_format == 'delta' %} {{ adapter.delta_create_table(target_relation, sql, unique_key, partition_by, custom_location) }} {% set build_sql = "select * from " + target_relation.schema + "." + target_relation.identifier + " limit 1 " %}