Skip to main content

DQX by Databricks Labs

logo

Simplified Data Quality checking at Scale for PySpark Workloads on streaming and standard DataFrames.

build codecov linesofcode PyPI PyPI Downloads

✨ Key capabilities

  • Rule-based quality checks — 80+ built-in checks (null, range, regex, referential, aggregate, geo, PII, and more) for row-level and column/dataset-level validation, with support for custom check functions.
  • Code or config checks — define checks programmatically as code or declaratively as YAML/JSON configuration.
  • Check levels — mark failed checks as warning or error.
  • Custom reactions to failed checks — drop, mark, or quarantine invalid data flexibly.
  • Detailed failure info — get detailed insights into why each check failed.
  • AI-assisted rule generation — LLM-driven rule suggestions from business descriptions, powered by DSPy and Databricks Model Serving.
  • Data profiling & rule generation — automatic statistics collection and quality rule candidate generation from existing data.
  • ML row anomaly detection — Isolation Forest–based row anomaly detection with SHAP explanations and AI-generated narratives.
  • Data contracts — generate quality rules from ODCS data contracts, including schema validation.
  • Summary metrics & quality dashboard — built-in and custom aggregate metrics (input/error/warning/valid row counts, per-check breakdowns) persisted to Delta tables, with a Lakeview quality dashboard for tracking and identifying data quality issues.
  • Actions and alerting — automatically send Slack, Microsoft Teams, or generic webhook alerts and/or fail the pipeline when summary metrics cross a threshold.
  • Flexible checks storage — save and load quality rules from YAML/JSON files, Unity Catalog tables, Volumes, or Lakebase (PostgreSQL).
  • DQX Studio — browser-based no-code UI for authoring, reviewing, running, and monitoring quality rules, deployed as a Databricks App.
  • Data format agnostic & streaming support — works with PySpark DataFrames and applies checks to both batch and Spark Structured Streaming (including Lakeflow Pipelines / DLT) using the same API.

📖 Documentation

The complete documentation is available at: https://databrickslabs.github.io/dqx/

🛠️ Contribution

Please see the contribution guidance here on how to contribute to the project (build, test, and submit a PR).

💬 Project Support

Please note that this project is provided for your exploration only and is not formally supported by Databricks with Service Level Agreements (SLAs). They are provided AS-IS, and we do not make any guarantees. Please do not submit a support ticket relating to any issues arising from the use of this project.

Any issues discovered through the use of this project should be filed as GitHub Issues on this repository. They will be reviewed as time permits, but no formal SLAs for support exist.

Metadata

Release files for databricks-labs-dqx 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for databricks-labs-dqx 0.16.0
File Size Uploaded
databricks_labs_dqx-0.16.0.tar.gz 439.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for databricks-labs-dqx 0.16.0
File Interpreter ABI Platform
databricks_labs_dqx-0.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 938.5 kB

Release files / databricks_labs_dqx-0.16.0.tar.gz

Download URL databricks_labs_dqx-0.16.0.tar.gz
Size 439.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f658e768dfc79d83da7de8ae2a64321d774394fefbe7fa0b33cb81da1e98c0b7
BLAKE2b-256 checksum
How to use checksums
0bf2b52982ffd5e583f4c7485214b15f43ca1ea97b58de36b8165a728cd44714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / databricks_labs_dqx-0.16.0-py3-none-any.whl

Download URL databricks_labs_dqx-0.16.0-py3-none-any.whl
Size 499.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71006c42cb89f4b8ad2333f19d4b51552040c57582ff9345300de4597b14c8b0
BLAKE2b-256 checksum
How to use checksums
9781298dfc0b34e69d6fbbd9fc3630b944d9a1e1ce5682f7eaa172603885c33f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.16.0 This release

2 release files

0.15.0

2 release files

0.12.0

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page