-
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.
Merge branch 'main' into staging/dump_geosislic
- Loading branch information
Showing
11 changed files
with
64 additions
and
6 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
4 changes: 2 additions & 2 deletions
4
queries/models/adm_licenca_urbanismo/area_protecao_cultural.sql
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,8 +1,8 @@ | ||
SELECT | ||
ID_AREA_PROTECAO_CULTURAL AS id_area_protecao_cultural, | ||
REGEXP_REPLACE( | ||
NORMALIZE(UPPER(DS_AREA_PROTECAO_CULTURAL), NFD), | ||
r'\p{M}', | ||
NORMALIZE(UPPER(DS_AREA_PROTECAO_CULTURAL), NFD), | ||
r'\p{M}', | ||
'' | ||
) AS nome_area_protecao_ambiental | ||
FROM `rj-smdue.adm_licenca_urbanismo_staging.area_protecao_cultural` |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SELECT | ||
CAST(CAST(num_lic_Origem AS FLOAT64) AS int64) AS id_licenciamento_origem, | ||
CAST(CAST(num_lic_Destino AS FLOAT64) AS int64) AS id_licenciamento_destino, | ||
CAST(DtTransferencia AS DATETIME) AS data_transferencia, | ||
CODORGAOSIGMA_ORIGEM AS id_orgao_SISLIC_origem, | ||
CODORGAOSIGMA_DESTINO AS id_orgao_SISLIC_destino | ||
FROM `rj-smdue.adm_licenca_urbanismo_staging.licenca_transferida` |
6 changes: 6 additions & 0 deletions
6
queries/models/adm_licenca_urbanismo/registro_cancelamento_produto.sql
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SELECT | ||
cod_dlf AS id_orgao_SISLIC, | ||
tipo AS tipo, | ||
Nr_documento AS numero_documento, | ||
CAST(dt_cancelamento AS DATETIME) AS data_cancelamento | ||
FROM `rj-smdue.adm_licenca_urbanismo_staging.registro_cancelamento_produto` |