Skip to content

Give distinct CatalogRecords distinct synthetic identifiers - #930

Open
soroush5 wants to merge 1 commit into
GSA:mainfrom
soroush5:fix/backfill-colliding-record-ids
Open

Give distinct CatalogRecords distinct synthetic identifiers#930
soroush5 wants to merge 1 commit into
GSA:mainfrom
soroush5:fix/backfill-colliding-record-ids

Conversation

@soroush5

@soroush5 soroush5 commented Sep 9, 2026

Copy link
Copy Markdown

backfill_catalog_record_identifiers synthesized the @id from primaryTopic|modified only, so two different records sharing those fields (or both missing them) got the exact same @id, and filter_duplicate_identifiers then wrongly dropped all but the first — silent data loss.

Now hashes the full record content: distinct records get distinct @ids, byte-identical records still collapse (true duplicates), and ids stay stable across runs. TestBackfillCatalogRecordIdentifiers (5 existing + 1 new): 6 passed.

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