Skip to content

Downstream consumer: GAUL codes regressed to float; and is historical append-only or revised? #272

Description

@Polichinel

Two questions from a downstream consumer of the parquet outputs we write for the UN-FAO delivery. I am drafting a reply and would like this repo's answer before I send it — please comment, or open a PR where the fix is clear.

Q1 — GAUL codes are floats again (regression)

The consumer reports that GAUL codes in the parquet outputs are floating-point numbers and asks for integers, "like the other ids".

This was reported once before and confirmed fixed in March 2026 — the response at the time was "we changed the code to store GAUL codes as integers". The recent global re-upload appears to have gone through a write path that does not carry that cast.

What I need:

  • Where does the int cast live, and which path applies it?
  • Why does the current path miss it — different function, different branch, or was the fix never merged to the path now in use?
  • Is there a test that would have caught this? If not, that is arguably the more important fix.
  • A realistic timing estimate, since I have to tell them something.

Please treat the "was it ever actually fixed" question as live. Saying it was fixed and shipping floats twice is worse than the float itself.

Q2 — is historical data append-only, or revised retroactively?

The consumer asks:

It would be very appreciated if you have any recommendations for a better way to update the historical data. Maybe we just need to append the last new month. But I don't know if the previous data are modified.

They are asking so they can decide between an incremental update and a full re-pull. This is an architecture decision on their side and I want to give them the true answer, not the convenient one.

What I need: do earlier months change on later runs — through UCDP revisions, reprocessing, boundary or coverage changes, anything? If history is ever rewritten, say so plainly and, if possible, say under what circumstances and how often. If it is genuinely append-only, say that too and I will tell them they can append.


Reply drafted, sending once these are answered. Comments on this issue are the fastest way in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions