Skip to content

Commit

Permalink
Merge pull request #377 from basedosdados/staging/br_ibge_censo_2022
Browse files Browse the repository at this point in the history
[dbt] censo 2022
  • Loading branch information
arthurfg authored Dec 22, 2023
2 parents 2a562ed + 5914224 commit 66788f3
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ from ibge
left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio


Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ from ibge
left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio



Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ from ibge
left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio



Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ from ibge
left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio



Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ on ibge.municipio = t2.municipio





Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ SAFE_CAST(moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_lo
#SAFE_CAST(REPLACE(media_de_moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_indigena_localizados_em_terras_indigenas_pessoas_, ",", ".") AS FLOAT64) media_moradores_indigenas_domicilios_terras_indigenas,
FROM basedosdados-staging.br_ibge_censo_2022_staging.domicilios_moradores_terras_indigenas AS t



Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ on ibge.municipio = t2.municipio





Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ SAFE_CAST(moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_co
FROM basedosdados-staging.br_ibge_censo_2022_staging.domicilios_pelo_menos_um_moradore_terras_indigenas AS t




Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ from ibge
left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio



Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ SAFE_CAST(pessoas_indigenas_residentes_em_terras_indigenas_pessoas_ AS INT64) pe
SAFE_CAST(quesito_de_declaracao_indigena AS STRING) quesito_declaracao_indigena,
FROM basedosdados-staging.br_ibge_censo_2022_staging.populacao_residente_terras_indigenas AS t



Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ on t.unidade_da_federacao = t2.nome





Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio




Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio




Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ SAFE_CAST(moradores_quilombolas_em_domicilios_particulares_permanentes_ocupados_
FROM basedosdados-staging.br_ibge_censo_2022_staging.quilombolas_domicilio_morador_territorio_quilombola AS t




Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ on ibge.municipio = t2.municipio





Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ SAFE_CAST(moradores_quilombolas_em_domicilios_particulares_permanentes_ocupados_
FROM basedosdados-staging.br_ibge_censo_2022_staging.quilombolas_domicilio_pelo_menos_um_morador_quilombola_territorio_quilombola_territorio_quilombola AS t




Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ from ibge
left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2
on ibge.municipio = t2.municipio



Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ SAFE_CAST(pessoas_quilombolas_residentes_em_territorios_quilombolas_pessoas_ AS
SAFE_CAST(pessoas_residentes_em_territorios_quilombolas_pessoas_ AS INT64) populacao_residente,
FROM basedosdados-staging.br_ibge_censo_2022_staging.populacao_residente_territorios_quilombolas AS t



2 changes: 1 addition & 1 deletion models/br_ibge_censo_2022/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

models:
- name: br_ibge_censo_2022__quilombolas_domicilio_morador_municipio
description: Domicílios particulares permanentes ocupados e Moradores, total e quilombolas, em domicílios particulares permanentes, segundo localização do domicílio.
description: Domicílios particulares permanentes ocupados e Moradores, total e quilombolas, em domicílios particulares permanentes, segundo localização do domicílio.
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand Down

0 comments on commit 66788f3

Please sign in to comment.