How do you reprocess documents after fixing an extraction bug?

tajamulkhan
Esteemed Contributor

Suppose an extraction bug affects documents containing a particular date format. After fixing it, rerunning every document may be expensive and could alter records that were already approved.

My starting design would retain the original file, extraction version and validation results so that affected records can be identified.

I would write the new results separately and compare them before updating the current records.

How do you scope these reprocessing runs in a Delta-based pipeline, especially when some outputs have already been used downstream?