[P3] New checks: Schema, composite-key duplicates, Sum/Stddev/Quantile, StringLength, RangeRatio

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by reviewing prerequisite issue #104 and how the project defines and tests its existing single-metric checks. The proposal calls for six check types, SQL and threshold unit tests, and an integration test. Done means each check is implemented and covered by those tests; the issue does not name specific files or test commands.

Written by the indexing model from the issue text.

Description

enhancement good first issue

Proposal

Smaller checks that fit the single-metric model:

  • SchemaCheck: number of missing/mistyped expected columns (expected: {col: type})
  • DuplicateCheck with check_columns: [a, b] (composite keys)
  • SumCheck, StddevCheck, QuantileCheck (quantile: 0.5)
  • StringLengthCheck (min|max|avg length)
  • RangeRatioCheck: share of values within [min, max]

Each with unit tests (SQL + thresholds) and an integration test.

Depends on

  • #104

Roadmap item 29/30 (Phase 3 – easier to act on (diagnostics, reporting, alerts, adaptive thresholds, new checks)).

Dominant language
Python
Stars
4
Forks
3
Avg merge
28m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ottogroup/koality

All issues in ottogroup/koality

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.