Skip to content

Commit

Permalink
include alias
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-l-amaral committed Sep 28, 2023
1 parent 895635d commit 5f9f6c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{{
config(
alias = 'diaria',
schema='br_bcb_taxa_cambio',
materialized='table',
labels = {'tema': 'economia'})
}}
SELECT
SAFE_CAST(ano AS STRING) ano,
SAFE_CAST(data_cotacao AS DATE) data_cotacao,
Expand All @@ -9,4 +16,4 @@ SAFE_CAST(paridade_compra AS FLOAT64) paridade_compra,
SAFE_CAST(paridade_venda AS FLOAT64) paridade_venda,
SAFE_CAST(cotacao_compra AS FLOAT64) cotacao_compra,
SAFE_CAST(cotacao_venda AS FLOAT64) cotacao_venda
FROM basedosdados-dev.br_bcb_taxa_cambio_staging.taxa_cambio AS t
FROM basedosdados-staging.br_bcb_taxa_cambio_staging.taxa_cambio AS t
2 changes: 1 addition & 1 deletion models/br_bcb_taxa_cambio/schema.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

models:
- name: taxa_cambio
- name: br_bcb_taxa_cambio__diaria
description: Boletins diários com a Paridade de Compra e a Paridade de Venda, a Cotação de Compra e a Cotação de Venda. São cinco boletins para cada data, um de abertura, três intermediários e um de fechamento.
columns:
- name: ano
Expand Down

0 comments on commit 5f9f6c2

Please sign in to comment.