LEVEL 2 · BUILDER

Dataset Contract Gate

Define a small versioned data contract, check field types and bounds, find every row in duplicate groups, and export accepted records separately from quarantine. A CLI exit code gates ingestion while a source-line report explains failures.

4 stages~8 hoursPythoncore
Validate an explicit quality contractCheck each record without coercionFind all rows in a duplicate groupExport partitions and enforce the dataset gate
YOU END UP WITH

accepted.jsonl, quarantine.jsonl, receipt.json and review.html

LEARN FIRST
  • Python 3.12+; dictionaries, lists and command-line IO
WHY THESE LANGUAGES
  • Python Standard dictionaries, numeric checks and JSONL IO make cross-row validation easy to inspect.
PROJECT OUTLINE

Dataset Contract Gate in 4 stages

Quarantine invalid records and fail ingestion on explicit dataset rules.

  1. Validate an explicit quality contract

    Require version=1 and a nonempty fields object.

    starter · ~2 hours · Python

    validate an explicit quality contract
  2. Check each record without coercion

    Consume a validated contract.

    core · ~2 hours · Python

    check each record without coercion
  3. Find all rows in a duplicate group

    For each unique column, index valid typed values to one-based input row numbers.

    core · ~2 hours · Python

    find all rows in a duplicate group
  4. Export partitions and enforce the dataset gate

    Return schema_version=1, passed, counts, dataset_issues, duplicates, accepted and quarantine.

    core · ~2 hours · Python

    export partitions and enforce the dataset gate

Build these projects first

All projects · Course catalog · Source on GitHub