From 9c6b88e3897268203fe30f7d7c99aa98c9f55f38 Mon Sep 17 00:00:00 2001 From: uiro-bi Date: Mon, 2 Dec 2024 11:56:45 -0300 Subject: [PATCH] update CTE reference --- models/br_sfb_sicar/br_sfb_sicar__area_imovel.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/br_sfb_sicar/br_sfb_sicar__area_imovel.sql b/models/br_sfb_sicar/br_sfb_sicar__area_imovel.sql index c3ed3c89..a111c143 100644 --- a/models/br_sfb_sicar/br_sfb_sicar__area_imovel.sql +++ b/models/br_sfb_sicar/br_sfb_sicar__area_imovel.sql @@ -33,7 +33,7 @@ with ) select * -from `basedosdados-staging.br_sfb_sicar_staging.area_imovel` +from area_imovel {% if is_incremental() %} where data_extracao > (select max(data_extracao) from {{ this }}) {% endif %}