Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dbt] br_mg_belohorizonte_smfa_iptu #290

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading