Skip to content

Commit

Permalink
corrige filtro incremental
Browse files Browse the repository at this point in the history
  • Loading branch information
pixuimpou committed Jul 17, 2024
1 parent 2546a98 commit 0e3a2bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion queries/models/validacao_dados_jae/integracao_invalida.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ integracao_agg AS (
MIN(intervalo_integracao) AS menor_intervalo
FROM
{{ ref("integracao") }}
WHERE
{% if is_incremental() %}
WHERE
{% if partition_list|length > 0 %}
data IN ({{ partition_list|join(', ') }})
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion queries/models/validacao_dados_jae/transacao_invalida.sql
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ WITH transacao AS (
ON
t.id_servico_jae = s.id_servico_jae
AND t.data >= s.data_inicio_vigencia AND (t.data <= s.data_fim_vigencia OR s.data_fim_vigencia IS NULL)
WHERE
{% if is_incremental() %}
WHERE
{% if partition_list|length > 0 %}
data IN ({{ partition_list|join(', ') }})
{% else %}
Expand Down

0 comments on commit 0e3a2bc

Please sign in to comment.