-
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.
first casting to float before casting to int
- Loading branch information
1 parent
d17d56f
commit df04bde
Showing
17 changed files
with
40 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SELECT | ||
Cod_Fase AS id_fase, | ||
Abrev_Fase AS nome_fase, | ||
CAST(OrdemImp AS INT64) AS ordem_importancia | ||
CAST(CAST(OrdemImp AS FLOAT64) AS INT64) AS ordem_importancia | ||
FROM `rj-smdue.adm_licenca_urbanismo_staging.fase_obra` |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SELECT | ||
CAST(Id_Lote AS string) AS id_lote , | ||
CAST(num_lic AS string) AS id_licenciamento, | ||
CAST(Quantidade AS int) AS quantidade_lotes, | ||
CAST(Categoria AS int) AS categoria_lote, | ||
CAST(TpLote AS int) AS lote_aprovado | ||
CAST(CAST(Quantidade AS FLOAT64) AS int64) AS quantidade_lotes, | ||
CAST(CAST(Categoria AS FLOAT64) AS int64) AS categoria_lote, | ||
CAST(CAST(TpLote AS FLOAT64) AS int64) AS lote_aprovado | ||
FROM `rj-smdue.adm_licenca_urbanismo_staging.licenca_loteamento` |
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
tipo_licenca_acao_requerente` | ||
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SELECT | ||
codParecer AS Id_Parecer, | ||
descParecer AS Descricao_Parecer, | ||
CAST(vfGeraPublicacao as int64) AS Gera_Publicacao, | ||
CAST(CAST(vfGeraPublicacao AS FLOAT64) as int64) AS Gera_Publicacao, | ||
descClassificacao AS Classificacao, | ||
cast(PUBLICACAO_FRENTE_DO as bool) AS Publicacao_Frente_DO | ||
FROM `rj-smdue.adm_licenca_urbanismo_staging.tipo_parecer_tramite` |
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