-
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 'add_format_sql' of https://github.com/prefeitura-rio/pi…
…pelines_rj_smtr into add_format_sql
- Loading branch information
Showing
27 changed files
with
1,116 additions
and
280 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
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
pipelines/migration/br_rj_riodejaneiro_onibus_gps/CHANGELOG.md
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
36 changes: 36 additions & 0 deletions
36
pipelines/migration/br_rj_riodejaneiro_onibus_gps/constants.py
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,36 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Constant values for rj_smtr br_rj_riodejaneiro_onibus_gps | ||
""" | ||
|
||
from enum import Enum | ||
|
||
|
||
class constants(Enum): # pylint: disable=c0103 | ||
""" | ||
Constant values for rj_smtr br_rj_riodejaneiro_onibus_gps | ||
""" | ||
|
||
GPS_DATA_CHECKS_LIST = { | ||
"gps_sppo": { | ||
"unique_columns__gps_sppo": {"description": "Todos os registros são únicos"}, | ||
"not_null__timestamp_gps__gps_sppo": { | ||
"description": "Todos os registros possuem timestamp_gps não nulo" | ||
}, | ||
"not_null__id_veiculo__gps_sppo": { | ||
"description": "Todos os registros possuem id_veiculo não nulo" | ||
}, | ||
"not_null__servico__gps_sppo": { | ||
"description": "Todos os registros possuem servico não nulo" | ||
}, | ||
"not_null__latitude__gps_sppo": { | ||
"description": "Todos os registros possuem latitude não nula" | ||
}, | ||
"not_null__longitude__gps_sppo": { | ||
"description": "Todos os registros possuem longitude não nula" | ||
}, | ||
"not_null__status__gps_sppo": { | ||
"description": "Todos os registros possuem servico não nulo" | ||
}, | ||
} | ||
} |
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
Oops, something went wrong.