From 7f91f334b7c6311cad0b24723e0aa3f69ae438d0 Mon Sep 17 00:00:00 2001 From: Alex Higgs Date: Tue, 22 Feb 2022 13:44:24 +0000 Subject: [PATCH] Minor --- macros/materialisations/vault_insert_by_rank_materialization.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/macros/materialisations/vault_insert_by_rank_materialization.sql b/macros/materialisations/vault_insert_by_rank_materialization.sql index 0941b0598..1c79f394c 100644 --- a/macros/materialisations/vault_insert_by_rank_materialization.sql +++ b/macros/materialisations/vault_insert_by_rank_materialization.sql @@ -35,7 +35,6 @@ {{ log("Dropping relation " ~ target_relation ~ " because it is a view and this model is a table (vault_insert_by_rank).") }} {% do adapter.drop_relation(existing_relation) %} - {% set build_sql = create_table_as(False, target_relation, filtered_sql) %} {% set filtered_sql = dbtvault.replace_placeholder_with_rank_filter(sql, rank_column, 1) %} {% set build_sql = create_table_as(False, target_relation, filtered_sql) %}