Skip to content

Commit

Permalink
add dicionario
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Sep 12, 2023
1 parent 6c87a0a commit 22e837e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ config(alias='dicionario', schema='br_mg_belohorizonte_smfa_iptu') }}


SELECT
SAFE_CAST(id_tabela AS STRING) id_tabela,
SAFE_CAST(nome_coluna AS STRING) nome_coluna,
SAFE_CAST(chave AS STRING) chave,
SAFE_CAST(cobertura_temporal AS STRING) cobertura_temporal,
SAFE_CAST(valor AS STRING) valor
FROM basedosdados-dev.br_mg_belohorizonte_smfa_iptu_staging.dicionario AS t
16 changes: 15 additions & 1 deletion models/br_mg_belohorizonte_smfa_iptu/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,18 @@ models:
- name: area_terreno
description: Área do terreno
- name: area_construida
description: Área construida
description: Área construida

- name: br_mg_belohorizonte_smfa_iptu__iptu_dicionario
description: "Dicionário de dados da tabela de IPTU da cidade de Belo Horizonte"
columns:
- name: id_coluna
description: ID da coluna
- name: nome_coluna
description: Nome da coluna
- name: chave
description: Chave
- name: cobertura_temporal
description: Cobertura temporal
- name: valor
description: Valor

0 comments on commit 22e837e

Please sign in to comment.