Skip to content

fixed pipeline for UNDATA - #2239

Open
niveditasing wants to merge 3 commits into
datacommonsorg:masterfrom
niveditasing:Undata_fix
Open

niveditasing wants to merge 3 commits into
datacommonsorg:masterfrom
niveditasing:Undata_fix

Conversation

@niveditasing

Copy link
Copy Markdown
Contributor

Overview

Fixes the UNData auto-refresh failure caused by upstream city renaming in UN Table 240 that triggered check_deleted_records_percent failure.

Changes

  1. Place Resolution (UNData_places_resolved_csv.csv):
    • Mapped Manas (Jalal-Abad) Kyrgyzstan -> wikidataId/Q487689
    • Mapped Gulu City Uganda -> wikidataId/Q581379
    • Mapped Hoima City Uganda -> wikidataId/Q1624192
    • Mapped Masaka City Uganda -> wikidataId/Q1032233
    • Mapped Mbarara City Uganda -> wikidataId/Q731039
      (Reduces deleted observations in nodes-deleted.mcf from 25 to 0)
  2. Validation Configuration (validation_config.json):
    • Set check_deleted_records_percent threshold to 0.1%.
    • Added check_max_date_freshness using SQL_VALIDATOR to enforce date freshness.
  3. Manifest (manifest.json):
    • Linked "validation_config_file": "validation_config.json".

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds resolved places for Kyrgyzstan and Uganda, registers a validation configuration file in the manifest, and defines validation rules for deleted records and date freshness. The review feedback suggests improving the date freshness SQL query by extracting the year portion of MaxDate before casting it to an integer, ensuring robustness against ISO 8601 date formats.

Comment thread statvar_imports/undata/validation_config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant