OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Propose automated fixes for failed Data Quality checks (impute, normalize, dedupe) and provide a safe preview + confidence score

Open PubChimps opened this issue 8 months ago • 4 comments

Deliverables

  • repair-suggester service (Python)
  • web preview showing proposed diffs and confidence
  • Unit tests for strategies and safety rollbacks

Starter tasks

  • collect sample failing records and failure types
  • implement basic strategies: mean/median imputation, fill-forward, trim whitespace, normalize case, dedupe by key
  • compute confidence heuristics (matching ratios, value distributions)
  • implement preview/diff generation and rollback guard

PubChimps avatar Mar 20 '26 19:03 PubChimps

hi sir I’ve reviewed the issue and have an idea for the fix. I’d like to work on this. Please assign it to me.

jatinmasaram avatar Apr 04 '26 09:04 jatinmasaram

Hi @PubChimps, I've reviewed the issue and the deliverables. I would like to work on this.

ppramanik62 avatar Apr 17 '26 12:04 ppramanik62

Hi @PubChimps , this looks like a substantial main-track paradox (new Python service + UI preview + tests), probably more suited for me. I'd love if you assign this to me and appreciate the pointer there. Thanks!

abhay-codes07 avatar Apr 21 '26 15:04 abhay-codes07


Hi @PubChimps , I'd love to take ownership of this issue!

I have a clear implementation plan in mind:

For the repair-suggester service (Python):

  • Build it as a standalone Python module under ingestion/src/metadata/data_quality/repair/ following the existing connector/workflow patterns in the ingestion framework
  • Strategy classes using an abstract base RepairStrategy with concrete implementations for MeanMedianImputer, FillForwardStrategy, WhitespaceTrimmer, CaseNormalizer, and DeduplicatorByKey
  • Each strategy will expose a confidence_score() method using value distribution matching ratios and null-fill heuristics

For the web preview (UI diff):

  • A React component under openmetadata-ui that renders a before/after diff table with color-coded changes
  • Confidence score badge (green/yellow/red) per suggested fix
  • A rollback guard that stores the original snapshot before any patch is applied, ensuring safe one-click revert

For tests:

  • Unit tests for each repair strategy with edge cases (all-null columns, mixed types, duplicate keys)
  • Safety rollback tests ensuring original state is always recoverable

I'm confident this will integrate cleanly with OpenMetadata's existing Data Quality framework (TestSuite, TestCase, TestCaseResult entities) and the ingestion workflow lifecycle. Would love to be assigned — I'll have a draft PR up quickly!


Yashsainani123 avatar Apr 25 '26 10:04 Yashsainani123