Skip to content

Commit

Permalink
Merge pull request #608 from basedosdados/stagingbr_jota_2024
Browse files Browse the repository at this point in the history
[Fix-dados]br_jota 2024
  • Loading branch information
Winzen authored Sep 12, 2024
2 parents 58cc27b + 08ace7c commit 9b79bc0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions models/br_jota/br_jota__eleicao_auxiliar_categoria_origem.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{
config(
alias="eleicao_auxiliar_categoria_origem",
schema="br_jota",
materialized="table",
)
}}
select *
from `basedosdados-dev.br_jota_staging.eleicao_auxiliar_categoria_origem`
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ with
select t1.*, t2.categoria
from receita_despesa as t1
left join
`basedosdados-perguntas.br_jota.eleicao_auxiliar_categoria_origem` as t2
`basedosdados-dev.br_jota.eleicao_auxiliar_categoria_origem` as t2
on t1.origem = t2.origem
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ with
select t1.*, t2.categoria
from receita_despesa as t1
left join
`basedosdados-perguntas.br_jota.eleicao_auxiliar_categoria_origem` as t2
`basedosdados-dev.br_jota.eleicao_auxiliar_categoria_origem` as t2
on t1.origem = regexp_replace(normalize(t2.origem, nfd), r"\pM", '')
where data_conta <= current_date()
order by data_conta

0 comments on commit 9b79bc0

Please sign in to comment.