added validation_config.json WorldDevelopmentIndicators - #1996
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new validation configuration file, validation_config.json, for the World Bank WDI dataset. It defines rules for checking deleted record counts and performing golden file comparisons. The review feedback highlights path inconsistencies for golden files and a missing directory prefix for input files, which could prevent the validation tool from locating the necessary data.
|
@gemini-code-assist review |
There was a problem hiding this comment.
Code Review
This pull request introduces import validation for the World Bank WDI dataset by adding a validation configuration, updating the manifest, and providing golden data files. Feedback includes a missing file reference for 'golden_WorldBank.csv', a path mismatch for the summary report, and a suggestion to move golden files to a local directory for better self-containment. Additionally, the documentation header in the README should be generalized to describe the process rather than the PR, and the threshold for the deleted records percentage may need adjustment to reflect the intended strictness.
|
LGTM |
|
LGTM |
…ata into implemented_golden_checks
SandeepTuniki
left a comment
There was a problem hiding this comment.
Thanks for the changes! I've left a couple of review suggestions inline below.
Also, please update the PR description so it matches the final implementation (it currently still mentions the older gs://resolved_mcf/.../deleted_historical_data_06_2026.csv path, a graceful fallback instead of logging.fatal, and golden checks).
|
Hi @niveditasing, you comments say the changes are made, but I don't see new commits since my review. Did you forget to push the changes? Also, the PR description still shows the old text. |
Sorry for the inconvenience; I forgot to push the changes earlier. I have resolved the PR comments and pushed the updates now. |
SandeepTuniki
left a comment
There was a problem hiding this comment.
Thanks for the changes!
Note: I updated the PR description for now, but please keep it up to date for future PRs.
New GCS Flag:
--historical_gcs_path(defaulting togs://unresolved_mcf/world_bank/wdi/deleted_rows_07_2026.csv) to specify the GCS location of deleted historical records.Merge & Deduplication Logic (
worldbank.py):retry_callwith exponential backoff (3 tries) and fails fast vialogging.fatalif the file cannot be read.StatisticalVariable,ISO3166Alpha3,Year,observationPeriod,unit,measurementMethod,scalingFactor) while prioritizing fresh observations (keep='first').output/directory initialization at the start ofprocess()and adds unit tests inworldbank_test.py(test_merge_historical_data).Import Validation (
validation_config.json&manifest.json):DELETED_RECORDS_PERCENTthreshold at0.1%.check_max_date_freshness(SQL_VALIDATOR) to verify per-StatVarMaxDatefreshness (latest_year >= EXTRACT(YEAR FROM CURRENT_DATE) - 3for all active StatVars).Artifacts & Testing Results: