diff --git a/models/br_me_comex_stat/br_me_comex_stat__dicionario.sql b/models/br_me_comex_stat/br_me_comex_stat__dicionario.sql index d6103472..b3f6ef09 100644 --- a/models/br_me_comex_stat/br_me_comex_stat__dicionario.sql +++ b/models/br_me_comex_stat/br_me_comex_stat__dicionario.sql @@ -6,14 +6,14 @@ }} select safe_cast(id_tabela as string) id_tabela, + safe_cast(coluna as string) nome_coluna, safe_cast( case when coluna = 'id_urf' then lpad(safe_cast(chave as string), 6, '0') else safe_cast(chave as string) end as string - ) nome_coluna, - safe_cast(chave as string) chave, + ) chave, safe_cast(cobertura_temporal as string) cobertura_temporal, safe_cast(valor as string) valor -from `basedosdados-staging.br_me_comex_stat_staging.dicionario` as t +from `basedosdados-dev.br_me_comex_stat_staging.dicionario` as t