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

[fix] br bd indicadores contabilidade #144

Merged
merged 3 commits into from
Aug 1, 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
11 changes: 6 additions & 5 deletions models/br_bd_indicadores/contabilidade.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
SELECT
SAFE_CAST(ano_competencia AS INT64) ano_competencia,
SAFE_CAST(mes_competencia AS INT64) mes_competencia,
SAFE_CAST(ano_caixa AS INT64) ano_caixa,
SAFE_CAST(mes_caixa AS INT64) mes_caixa,
SAFE_CAST(SAFE_CAST(ano_competencia AS NUMERIC) AS INT64) ano_competencia,
SAFE_CAST(SAFE_CAST(mes_competencia AS NUMERIC) AS INT64) mes_competencia,
SAFE_CAST(SAFE_CAST(ano_caixa AS NUMERIC) AS INT64) ano_caixa,
SAFE_CAST(SAFE_CAST(mes_caixa AS NUMERIC) AS INT64) mes_caixa,
SAFE_CAST(categoria AS STRING) categoria,
SAFE_CAST(tipo AS STRING) tipo,
SAFE_CAST(frequencia AS STRING) frequencia,
SAFE_CAST(valor AS FLOAT64) valor
SAFE_CAST(equipe AS STRING) equipe,
SAFE_CAST(SAFE_CAST(valor AS NUMERIC) AS FLOAT64) valor
FROM basedosdados-staging.br_bd_indicadores_staging.contabilidade AS t
4 changes: 3 additions & 1 deletion models/br_bd_indicadores/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ models:
- name: new_users
description: Number of new users in that date
- name: contabilidade
description: "contabilidade da BD"
description: "contabilidade da BD."
columns:
- name: ano_competencia
description: "ano de competência"
Expand All @@ -95,6 +95,8 @@ models:
description: "tipo de despesa"
- name: frequencia
description: "frequência de pagamento"
- name: equipe
description: "equipe relacionada a despesa"
- name: valor
description: "valor da despesa"
- name: receitas_planejadas
Expand Down
Loading