Skip to content

Commit

Permalink
fix: change incremental logic to rematerializa specific partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
folhesgabriel committed Nov 7, 2024
1 parent f3f907f commit d993bcf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/br_me_cnpj/br_me_cnpj__empresas.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ with
)
select *
from cnpj_empresas
{% if is_incremental() %} where data > (select max(data) from {{ this }}) {% endif %}
{% if is_incremental() %} where data > '2024-09-01' {% endif %}
2 changes: 1 addition & 1 deletion models/br_me_cnpj/br_me_cnpj__estabelecimentos.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ with
)
select *
from cnpj_estabelecimentos
{% if is_incremental() %} where data > (select max(data) from {{ this }}) {% endif %}
{% if is_incremental() %} where data > '2024-09-01' {% endif %}
2 changes: 1 addition & 1 deletion models/br_me_cnpj/br_me_cnpj__socios.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ with
)
select *
from cnpj_socios
{% if is_incremental() %} where data > (select max(data) from {{ this }}) {% endif %}
{% if is_incremental() %} where data > '2024-09-01' {% endif %}

0 comments on commit d993bcf

Please sign in to comment.