Skip to content

Commit

Permalink
Merge pull request #341 from basedosdados/staging/br_ibge_pnadc-rendi…
Browse files Browse the repository at this point in the history
…mentos_outras_fontes

[fix] br_ibge_pnadc
  • Loading branch information
vilelaluiza authored Oct 25, 2023
2 parents b97053c + d885cdd commit 1e41c22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion models/br_ibge_pnadc/br_ibge_pnadc__microdados.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"end": 2022,
"interval": 1}
},
cluster_by = ["ano", "sigla_uf"],
cluster_by = "sigla_uf",
labels = {'project_id': 'basedosdados-dev', 'tema': 'economia'})
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"data_type": "int64",
"range": {
"start": 2012,
"end": 2022,
"end": 2025,
"interval": 1}
},
cluster_by = "sigla_uf",
Expand All @@ -18,8 +18,8 @@ SAFE_CAST(ano AS INT64) ano,
SAFE_CAST(trimestre AS INT64) trimestre,
SAFE_CAST(id_uf AS STRING) id_uf,
SAFE_CAST(sigla_uf AS STRING) sigla_uf,
SAFE_CAST(CASE WHEN capital IS NULL THEN id_uf ELSE capital END AS STRING) capital,
SAFE_CAST(CASE WHEN id_uf IN ('13','15','16','21','22','23','24','25','26','27','28','29','31','32','33','35','41','42','43','51','52') THEN id_uf ELSE NULL END AS STRING) rm_ride,
SAFE_CAST(capital AS STRING) capital,
SAFE_CAST(rm_ride AS STRING) rm_ride,
SAFE_CAST(id_upa AS STRING) id_upa,
SAFE_CAST(id_estrato AS STRING) id_estrato,
SAFE_CAST(id_domicilio AS STRING) id_domicilio,
Expand Down

0 comments on commit 1e41c22

Please sign in to comment.