[Data] br_ibge_censo_demografico 2022 public microdata - #1960
Draft
JoaoCarabetta wants to merge 6 commits into
Draft
[Data] br_ibge_censo_demografico 2022 public microdata#1960JoaoCarabetta wants to merge 6 commits into
JoaoCarabetta wants to merge 6 commits into
Conversation
Add pessoa, domicilio, familia and mortalidade tables from the IBGE public file, with sandbox-safe dbt overrides so local loads never write basedosdados-dev. Co-authored-by: Cursor <cursoragent@cursor.com>
…ecklist Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…onario Keep 1970–2010 labels from prod and union the 892 public-file categories so sexo, parentesco and the other 1/2/3 codes resolve like previous censuses. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
@JoaoCarabetta esse pull request tem conflitos 😩 |
…asedosdados/pipelines into data/br_ibge_censo_demografico
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Template Pull Requests - Pipeline
Nomeação do Pull Request
Draft
Opened as draft until official-lake upload + metadata are done.
Dataset
Slug:
br_ibge_censo_demografico(already published; this PR only adds tables)Tables:
microdados_pessoa_2022,microdados_domicilio_2022,microdados_familia_2022,microdados_mortalidade_2022, plus 892 2022 rows appended to the shareddicionarioCoverage: 2022
Source: IBGE Censo Demográfico 2022, microdados de acesso público
https://ftp.ibge.gov.br/Censos/Censo_Demografico_2022/Microdados_e_Areas_de_Ponderacao/Microdados_de_acesso_Publico/csv/
Descrição do PR
Extends the existing 1970–2010 sample-microdata series with the 2022 public file. Four record types (pessoa, domicílio, família, mortalidade). No emigração file in the public zip. No Prefect pipeline (decennial). Coded values (
1,2,3…) stay STRING in the microdata; labels live in the shareddicionario, same as previous censuses.Motivação/Contexto: IBGE released the public sample on 2026-08-31. Geography is capped at UF; disclosure-risk filter, 50% subsample of 100% sampling-fraction households, age in 5-year groups.
Detalhes Técnicos
ano=2022/sigla_uf=<UF>/. Types live in dbtsafe_cast.sandbox-507414only. Officialbasedosdados-dev/table-approveis a later step.set_datalake_projectaccepts an optionaldatalake_projectvar;skip_post_hooksskips theallUsersGRANT (sandbox org policy blocks it).relationshipstests are inschema.ymlbut were not run in sandbox (diretorios are not in that project).dicionariounions 1970–2010 rows from prod (id_tabela not like '%_2022') with 2022 staging (id_tabela like '%_2022'). Official staging fordicionariocan stay 2022-only; do not replace historical prod.Sandbox row counts (local = BQ)
microdados_pessoa_2022microdados_domicilio_2022microdados_familia_2022microdados_mortalidade_2022dicionarioTeste e Validações
basedosdados-dev/ table-approve)test-dev-modelwas not applied: staging is not inbasedosdados-devyet.Riscos e Mitigações
table-approvewill fail until staging exists in the official lake. Metadata not registered (Data Basis MCP unavailable this session). Public-file suppression leaves many skip-pattern columns sparse.Dependencias
basedosdados-dev)under_reviewat table level; dataset stays published)Checklist
Made with Cursor