Skip to content

Commit

Permalink
[dados-atualizacao]br_me_siorg (#1523)
Browse files Browse the repository at this point in the history
* dado

Add dados

* update

* updtae

* publish

* Update table_config.yaml
  • Loading branch information
gabrielle-carv authored Jan 11, 2023
1 parent 5216ec6 commit 8f96c7c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bases/br_me_siorg/remuneracao/schema-prod.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name": "sigla_cargo_funcao", "bigquery_type": "string", "description": "Sigla do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING", "mode": "NULLABLE"}, {"name": "nome_cargo_funcao", "bigquery_type": "string", "description": "Nome do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING", "mode": "NULLABLE"}, {"name": "nivel_cargo_funcao", "bigquery_type": "string", "description": "N\u00edvel do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING", "mode": "NULLABLE"}, {"name": "remuneracao", "bigquery_type": "float64", "description": "Valor da remunera\u00e7\u00e3o do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": "brl", "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "FLOAT", "mode": "NULLABLE"}, {"name": "cce_unitario", "bigquery_type": "float64", "description": "Valor do Cargo Comissionado Executivo (CCE) - Unit\u00e1rio para o reajuste de cargos ", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": "consiste no valor da remunera\u00e7\u00e3o dividido por 2.701,46", "is_in_staging": true, "is_partition": false, "type": "FLOAT", "mode": "NULLABLE"}]
[{"name": "sigla_cargo_funcao", "bigquery_type": "string", "description": "Sigla do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING", "mode": "NULLABLE"}, {"name": "nome_cargo_funcao", "bigquery_type": "string", "description": "Nome do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING", "mode": "NULLABLE"}, {"name": "nivel_cargo_funcao", "bigquery_type": "string", "description": "N\u00edvel do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING", "mode": "NULLABLE"}, {"name": "remuneracao", "bigquery_type": "float64", "description": "Valor da remunera\u00e7\u00e3o do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": "brl", "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "FLOAT", "mode": "NULLABLE"}, {"name": "cce_unitario", "bigquery_type": "float64", "description": "Valor do Cargo Comissionado Executivo (CCE) - Unit\u00e1rio para o reajuste de cargos ", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": "consiste no valor da remunera\u00e7\u00e3o dividido por 2.701,46", "is_in_staging": true, "is_partition": false, "type": "FLOAT", "mode": "NULLABLE"}]
2 changes: 1 addition & 1 deletion bases/br_me_siorg/remuneracao/schema-staging.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name": "sigla_cargo_funcao", "bigquery_type": "string", "description": "Sigla do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "nome_cargo_funcao", "bigquery_type": "string", "description": "Nome do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "nivel_cargo_funcao", "bigquery_type": "string", "description": "N\u00edvel do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "remuneracao", "bigquery_type": "float64", "description": "Valor da remunera\u00e7\u00e3o do cargo ou fun\u00e7\u00e3o", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": "brl", "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "cce_unitario", "bigquery_type": "float64", "description": "Valor do Cargo Comissionado Executivo (CCE) - Unit\u00e1rio para o reajuste de cargos ", "temporal_coverage": [2022], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": "consiste no valor da remunera\u00e7\u00e3o dividido por 2.701,46", "is_in_staging": true, "is_partition": false, "type": "STRING"}]
[{"name": "sigla_cargo_funcao", "bigquery_type": "string", "description": "Sigla do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "nome_cargo_funcao", "bigquery_type": "string", "description": "Nome do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "nivel_cargo_funcao", "bigquery_type": "string", "description": "N\u00edvel do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "remuneracao", "bigquery_type": "float64", "description": "Valor da remunera\u00e7\u00e3o do cargo ou fun\u00e7\u00e3o", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": "brl", "has_sensitive_data": false, "observations": null, "is_in_staging": true, "is_partition": false, "type": "STRING"}, {"name": "cce_unitario", "bigquery_type": "float64", "description": "Valor do Cargo Comissionado Executivo (CCE) - Unit\u00e1rio para o reajuste de cargos ", "temporal_coverage": ["2022"], "covered_by_dictionary": false, "directory_column": {"dataset_id": null, "table_id": null, "column_name": null}, "measurement_unit": null, "has_sensitive_data": false, "observations": "consiste no valor da remunera\u00e7\u00e3o dividido por 2.701,46", "is_in_staging": true, "is_partition": false, "type": "STRING"}]
45 changes: 28 additions & 17 deletions bases/br_me_siorg/remuneracao/table_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Igual ao dataset.name mas como lower case.
# Exemplos: br_ibge_populacao, br_inep_censo_escolar
dataset_id: br_me_siorg
Expand All @@ -11,20 +12,26 @@ title: Cargos comissionados e funções gratificadas
# Você não precisa ser muito conciso. Sinta-se a vontade para dar exemplos de
# como usar os dados.
# Se souber, liste também aplicações: pesquisa, apps, etc. que usem os dados.,

description: Lista de cargos comissionados e funções gratificadas, segundo nível de remuneração (de acordo com os dados de 2022) e a taxa de reajuste.
description: Lista de cargos comissionados e funções gratificadas, segundo nível de
remuneração (de acordo com os dados de 2022) e a taxa de reajuste.

# As máximas unidades espaciais que a tabela cobre.
# Exemplo:
# - sa.br
# - sa.br
#
# - sa.br.sp
#
# - world
spatial_coverage:
- sa.br

# Anos cobertos pela tabela.

# Preencher como lista de intervalos.
# Exemplos: ['1995(1)2019'], ['2002(2)2010', '2016', '2020'].

# Exemplos:
# - 1995(1)2019
# Caso a cobertura não seja contínua:
# - 2002(2)2010
# - 2016
# - 2020
temporal_coverage:
- '2022'

Expand All @@ -33,18 +40,26 @@ temporal_coverage:
update_frequency: unique

# Nível de observação da tabela: o que representa cada linha.
# A combinação das colunas aqui deve construir uma chave única da tabelaOpções de entity em 'https://basedosdados.org/api/3/action/bd_available_options'
# Caso a entidade seja espacial incluir a informação de 'country' Exemplos:
# - entity: year
# columns:
# - ano
# - country: br
# entity: state
# columns:
# - sigla_uf
observation_level:
- entity: other
columns:
- nivel_cargo_funcao
- nivel_cargo_funcao

last_updated:
metadata: '2022-11-25'
data: '2022-11-25 16:02:13'
release: '2022-11-25 16:02:30'

# Versão da tabela. Seguindo o padrão de semantic versioning.

# Exemplos: v1.0, v1.1.3
version: v1.1

Expand Down Expand Up @@ -103,15 +118,13 @@ partitions:
# Adicionar todas as colunas manualmente pode ser bastante cansativo, por isso, quando
# inicializando este arquivo de configuração, você pode apontar a função para uma amostra de dados que
# preencherá automaticamente as colunas.
# Algumas colunas existirão apenas na tabela final, você as construirá em `publish.sql`.
# Para esses, defina is_in_staging como False.
# Além disso, você deve adicionar as colunas de partição aqui e definir is_partition como True.
columns:
- name: sigla_cargo_funcao
bigquery_type: string
description: Sigla do cargo ou função
temporal_coverage:
- 2022
- '2022'
covered_by_dictionary: no
directory_column:
dataset_id:
Expand All @@ -126,7 +139,7 @@ columns:
bigquery_type: string
description: Nome do cargo ou função
temporal_coverage:
- 2022
- '2022'
covered_by_dictionary: no
directory_column:
dataset_id:
Expand Down Expand Up @@ -186,6 +199,4 @@ columns:

number_rows: 258

metadata_modified: '2022-11-25T20:39:31.189443'


metadata_modified: '2023-01-11T19:51:49.183996'

0 comments on commit 8f96c7c

Please sign in to comment.