-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona coluna
id_ordem_pagamento_consorcio_operador_dia
/ Cria ta…
…bela `servico_operadora` (#191) * add id_ordem_pagamento_consorcio_operador_dia * cria tabela servico_operadora * descomenta refs * corrige descricao * corrige indentacao e add colunas operadora * add changelog * registrar nova versao dbt --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ec5281f
commit f55e2b1
Showing
9 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{ | ||
config( | ||
materialized="table" | ||
) | ||
}} | ||
|
||
SELECT | ||
c.id_consorcio, | ||
c.consorcio, | ||
o.id_operadora, | ||
o.operadora, | ||
lco.cd_linha AS id_servico_jae, | ||
s.servico, | ||
s.descricao_servico, | ||
lco.dt_inicio_validade AS data_inicio_validade, | ||
lco.dt_fim_validade AS data_fim_validade, | ||
'{{ var("version") }}' as versao | ||
FROM | ||
{{ ref("staging_linha_consorcio_operadora_transporte") }} lco | ||
JOIN | ||
{{ ref("operadoras") }} o | ||
ON | ||
lco.cd_operadora_transporte = o.id_operadora_jae | ||
JOIN | ||
{{ ref("consorcios") }} c | ||
ON | ||
lco.cd_consorcio = c.id_consorcio_jae | ||
JOIN | ||
{{ ref("servicos") }} s | ||
ON | ||
lco.cd_linha = s.id_servico_jae |