Skip to content

Commit

Permalink
fix: table imports
Browse files Browse the repository at this point in the history
  • Loading branch information
folhesgabriel committed Feb 26, 2024
1 parent 26b9f79 commit d9e2b47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions models/br_ms_cnes/br_ms_cnes__estabelecimento.sql
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ select
safe_cast(ap07cv04 as int64) indicador_atendimento_regulacao_plano_seguro_terceiro,
safe_cast(ap07cv05 as int64) indicador_atendimento_regulacao_plano_saude_publico,
safe_cast(ap07cv06 as int64) indicador_atendimento_regulacao_plano_saude_privado
from cnes_add_muni
{% if is_incremental() %}
where

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ select
) data_portaria,
cast(substr(maportar, 1, 4) as int64) as ano_portaria,
cast(substr(maportar, 5, 2) as int64) as mes_portaria,
from cnes_add_muni
{% if is_incremental() %}
where

Expand Down
2 changes: 1 addition & 1 deletion models/br_ms_cnes/br_ms_cnes__profissional.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ with
cast(ano as string) as ano1,
cast(mes as string) as mes1,
id_estabelecimento_cnes as iddd
from `basedosdados-staging.br_ms_cnes.estabelecimento`
from `basedosdados.br_ms_cnes.estabelecimento`
) as st
on pf.cnes = st.iddd
and pf.ano = st.ano1
Expand Down

0 comments on commit d9e2b47

Please sign in to comment.