Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions statvar_imports/india_rbistatedomesticproduct/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
"provenance_description": "RBI State Domestic Product data",
"scripts": [
"rbi_sdp_download.py",
"../../tools/statvar_importer/stat_var_processor.py --input_data=source_files/*.xlsx --pv_map=state_domestic_product_pv_map.csv --config_file=state_domestic_product_metadata.csv --places_resolved_csv=state_domestic_product_places_resolved.csv --output_path=output/state_domestic_product_output"
"../../tools/statvar_importer/stat_var_processor.py --input_data=source_files/*.xlsx --pv_map=state_domestic_product_pv_map.csv --config_file=state_domestic_product_metadata.csv --places_resolved_csv=state_domestic_product_places_resolved.csv --output_path=output/state_domestic_product_output --output_counters=counters/state_domestic_product_counters.csv --existing_statvar_mcf=gs://unresolved_mcf/scripts/statvar/stat_vars.mcf --statvar_dcid_remap_csv=statvar_remap.csv"
],
"source_files": [
"source_files/*.xlsx"
"source_files/*.xlsx",
"counters/*.csv",
"statvar_remap.csv"
],
"import_inputs": [
{
"template_mcf": "output/state_domestic_product_output.tmcf",
"cleaned_csv": "output/state_domestic_product_output.csv"
"cleaned_csv": "output/state_domestic_product_output.csv",
"node_mcf": "output/*.mcf"
Comment thread
Krishnam24maheshwari marked this conversation as resolved.
Comment thread
Krishnam24maheshwari marked this conversation as resolved.
}
],
"cron_schedule": "0 09 4,18 * *"
"cron_schedule": "0 09 4,18 * *",
"validation_config_file": "validation_config.json"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
statvar,dcid
RealValue_Amount_EconomicActivity_NetDomesticProduction_PerCapita,RealValue_Amount_EconomicActivity_NetDomesticProduction_AsAFractionOf_Count_Person
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"schema_version": "1.0",
"rules": [
{
"rule_id": "check_deleted_records_percent",
"description": "Checks that the percentage of deleted records for the entire import is within threshold.",
"validator": "DELETED_RECORDS_PERCENT",
"params": {
"threshold": 0.1
}
},
{
"rule_id": "check_max_date_consistent",
"description": "Checks that the latest date is the same for all StatVars.",
"validator": "MAX_DATE_CONSISTENT",
"params": {}
},
{
"rule_id": "check_max_date_freshness",
"description": "Checks that the latest date does not regress below 2025-03.",
"validator": "SQL_VALIDATOR",
"params": {
"query": "SELECT StatVar, MaxDate FROM stats",
"condition": "MaxDate >= '2025-03'"
}
}
]
}
Comment thread
Krishnam24maheshwari marked this conversation as resolved.