Skip to content

Commit

Permalink
partition_by
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielle-carv committed Sep 25, 2023
1 parent 487e3a3 commit 08d831f
Show file tree
Hide file tree
Showing 32 changed files with 128 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_domicilio_1970',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_domicilio_1980',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_domicilio_1991',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_domicilio_2000',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_domicilio_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_pessoa_1970',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_pessoa_1980',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_pessoa_1991',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_pessoa_2000',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_pessoa_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_alfabetizacao_homens_mulheres_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_alfabetizacao_total_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_basico_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='microdados_pessoa_1970',
schema='setor_censitario_domicilio_caracteristicas_gerais_2010',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_domicilio_moradores_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_domicilio_renda_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_entorno_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
alias='setor_censitario_idade_homens_2010',
schema='br_ibge_censo_demografico',
materialized='table',
)
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
}}
SELECT
SAFE_CAST(id_setor_censitario AS STRING) id_setor_censitario,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_idade_mulheres_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_idade_total_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_pessoa_renda_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_raca_alfabetizacao_idade_genero_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_raca_idade_0_4_genero_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_raca_idade_genero_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_registro_civil_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_relacao_parentesco_conjuges_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_relacao_parentesco_filhos_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_relacao_parentesco_filhos_enteados_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_relacao_parentesco_outros_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_responsavel_domicilios_homens_total_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_responsavel_domicilios_mulheres_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
alias='setor_censitario_responsavel_renda_2010',
schema='br_ibge_censo_demografico',
materialized='table',
partition_by={
"field": "sigla_uf",
"data_type": "string",
},
)
}}
SELECT
Expand Down

0 comments on commit 08d831f

Please sign in to comment.