Skip to content

Commit

Permalink
Merge pull request #290 from basedosdados/staging/br_mg_smfa
Browse files Browse the repository at this point in the history
[dbt] br_mg_belohorizonte_smfa_iptu
  • Loading branch information
tricktx authored Sep 13, 2023
2 parents f7a44bf + a556ea9 commit 0f4d76c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"end": 2023,
"interval": 1}
},
cluster_by=['tipo_construtivo', 'tipo_ocupacao', 'tipologia'],
cluster_by=['mes'],
labels = {'project_id' : 'basedosdados-dev'}
)}}
SELECT
Expand Down Expand Up @@ -42,5 +42,5 @@ SAFE_CAST(area_terreno AS FLOAT64) area_terreno,
SAFE_CAST(area_construida AS FLOAT64) area_construida
FROM basedosdados-dev.br_mg_belohorizonte_smfa_iptu_staging.iptu AS t
{% if is_incremental() %}
WHERE CONCAT(ano,mes) > (SELECT MAX(CONCAT(ano,mes)) FROM {{ this }} )
WHERE (CONCAT(ano,'-', mes)) > (SELECT MAX(CONCAT(ano, '-', mes)) FROM {{ this }} )
{% endif %}
4 changes: 2 additions & 2 deletions models/br_mg_belohorizonte_smfa_iptu/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ models:
- 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: id_tabela
description: ID da tabela
- name: nome_coluna
description: Nome da coluna
- name: chave
Expand Down

0 comments on commit 0f4d76c

Please sign in to comment.