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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

databricks_labs_dqx-0.16.0.tar.gz (439.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

databricks_labs_dqx-0.16.0-py3-none-any.whl (499.3 kB view details)

Uploaded Python 3

File details

Details for the file databricks_labs_dqx-0.16.0.tar.gz.

File metadata

  • Download URL: databricks_labs_dqx-0.16.0.tar.gz
  • Upload date:
  • Size: 439.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for databricks_labs_dqx-0.16.0.tar.gz
Algorithm Hash digest
SHA256 f658e768dfc79d83da7de8ae2a64321d774394fefbe7fa0b33cb81da1e98c0b7
MD5 0a403416c5433f6d5dd39d153bc469ad
BLAKE2b-256 0bf2b52982ffd5e583f4c7485214b15f43ca1ea97b58de36b8165a728cd44714

See more details on using hashes here.

File details

Details for the file databricks_labs_dqx-0.16.0-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_labs_dqx-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71006c42cb89f4b8ad2333f19d4b51552040c57582ff9345300de4597b14c8b0
MD5 e8b3943d01881f1b0d36c4f8e723bdec
BLAKE2b-256 9781298dfc0b34e69d6fbbd9fc3630b944d9a1e1ce5682f7eaa172603885c33f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.16.0 This release

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.1

2 files

0.1.0

2 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