Skip to content

Commit

Permalink
fix dev-staging
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Dec 4, 2024
1 parent da96c0e commit eb8a127
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ select
safe_cast(replace(valor_inicial_compra, ",", ".") as float64) valor_inicial_compra,
safe_cast(replace(valor_final_compra, ",", ".") as float64) valor_final_compra,

from `basedosdados-dev.br_cgu_licitacao_contrato_staging.contrato_compra` as t
from `basedosdados-staging.br_cgu_licitacao_contrato_staging.contrato_compra` as t
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ select
safe_cast(descricao_complementar_item_compra as string) descricao_complementar_item,
safe_cast(quantidade_item as int64) quantidade_item,
safe_cast(replace(valor_item, ",", ".") as float64) valor_item,
from `basedosdados-dev.br_cgu_licitacao_contrato_staging.contrato_item` as t
from `basedosdados-staging.br_cgu_licitacao_contrato_staging.contrato_item` as t
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ select
safe_cast(numero_termo_aditivo as string) id_termo_aditivo,
safe_cast(parse_date('%d/%m/%Y', data_publicacao) as date) data_publicacao_dou,
safe_cast(objeto as string) objeto,
from `basedosdados-dev.br_cgu_licitacao_contrato_staging.contrato_termo_aditivo` as t
from
`basedosdados-staging.br_cgu_licitacao_contrato_staging.contrato_termo_aditivo` as t
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ select
) data_resultado_compra,
safe_cast(parse_date('%d/%m/%Y', data_abertura) as date) data_abertura,
safe_cast(replace(valor_licitacao, ",", ".") as float64) valor_licitacao,
from `basedosdados-dev.br_cgu_licitacao_contrato_staging.licitacao` as licitacao
from `basedosdados-staging.br_cgu_licitacao_contrato_staging.licitacao` as licitacao
left join
`basedosdados-dev.br_bd_diretorios_brasil.municipio` as dir_municipio
`basedosdados.br_bd_diretorios_brasil.municipio` as dir_municipio
on upper(dir_municipio.nome) = licitacao.municipio
and dir_municipio.sigla_uf = licitacao.uf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ select
safe_cast(codigo_empenho as string) id_empenho,
safe_cast(parse_date('%d/%m/%Y', data_emissao_empenho) as date) data_emissao,
safe_cast(replace(valor_empenho, ",", ".") as float64) valor,
from `basedosdados-dev.br_cgu_licitacao_contrato_staging.licitacao_empenho` as t
from `basedosdados-staging.br_cgu_licitacao_contrato_staging.licitacao_empenho` as t
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ select
safe_cast(descricao as string) descricao_item,
safe_cast(quantidade_item as int64) quantidade_item,
safe_cast(replace(valor_item, ",", ".") as float64) valor_item,
from `basedosdados-dev.br_cgu_licitacao_contrato_staging.licitacao_item` as t
from `basedosdados-staging.br_cgu_licitacao_contrato_staging.licitacao_item` as t
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ select
when flag_vencedor = 'SIM' then true when flag_vencedor = 'NÃO' then false
end as boolean
) as vencedor
from `basedosdados-dev.br_cgu_licitacao_contrato_staging.licitacao_participante`
from `basedosdados-staging.br_cgu_licitacao_contrato_staging.licitacao_participante`

0 comments on commit eb8a127

Please sign in to comment.