Skip to content

Commit

Permalink
linted models
Browse files Browse the repository at this point in the history
  • Loading branch information
folhesgabriel committed Dec 16, 2024
1 parent b7e1930 commit 836e7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@
pre_hook="DROP ALL ROW ACCESS POLICIES ON {{ this }}",
)
}}





select
safe_cast(ano as int64) ano,
safe_cast(mes as int64) mes,
safe_cast(SUBSTRING(competenciamov, 1, 4) as int64) ano_competencia_movimentacao,
safe_cast(SUBSTRING(competenciamov, 5, 6) as int64) mes_competencia_movimentacao,
safe_cast(substring(competenciamov, 1, 4) as int64) ano_competencia_movimentacao,
safe_cast(substring(competenciamov, 5, 6) as int64) mes_competencia_movimentacao,
safe_cast(a.sigla_uf as string) sigla_uf,
safe_cast(b.id_municipio as string) id_municipio,
safe_cast(cnae_2_secao as string) cnae_2_secao,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@
pre_hook="DROP ALL ROW ACCESS POLICIES ON {{ this }}",
)
}}






select
safe_cast(ano as int64) ano,
safe_cast(mes as int64) mes,
safe_cast(SUBSTRING(competenciamov, 1, 4) as int64) ano_competencia_movimentacao,
safe_cast(SUBSTRING(competenciamov, 5, 6) as int64) mes_competencia_movimentacao,
safe_cast(substring(competenciamov, 1, 4) as int64) ano_competencia_movimentacao,
safe_cast(substring(competenciamov, 5, 6) as int64) mes_competencia_movimentacao,
safe_cast(a.sigla_uf as string) sigla_uf,
safe_cast(b.id_municipio as string) id_municipio,
safe_cast(cnae_2_secao as string) cnae_2_secao,
Expand Down

0 comments on commit 836e7cd

Please sign in to comment.