Skip to content

[DQaC] Simplified Test Runner API #23795

@edg956

Description

@edg956

As a data engineer
I want a simple Python API to define and run OpenMetadata data quality tests on my datasets
So that I can integrate data quality checks directly into my ETL or ELT code without manually interacting with the OpenMetadata APIs.

Acceptance Criteria

  • I can initialize a TestRunner for a service or table.
  • I can add one or more test cases using simple Python objects or functions.
  • I can run the tests and receive structured results in code.
  • The API uses existing OpenMetadata test definitions where possible.

Example API

from metadata.sdk.data_quality import TableColumnCountToBeBetween, TestRunner

runner = TestRunner.for_service("MySQL.default.openmetadata_db.bot_entity")
runner.add_test(TableColumnCountToBeBetween(min_count=10))

results = runner.run_and_handle()

Metadata

Metadata

Assignees

Type

Projects

Status

In Review / QA 👀

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions