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.
  • MCP server — Model Context Protocol server that exposes DQX as tools for AI agents (Claude, Genie, Cursor, and others), deployed as a Databricks App with on-behalf-of authentication so data access follows Unity Catalog permissions.
  • 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.17.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.17.0
File Size Uploaded Provenance
databricks_labs_dqx-0.17.0.tar.gz 511.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / databricks_labs_dqx-0.17.0.tar.gz

Download URL databricks_labs_dqx-0.17.0.tar.gz
Size 511.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb69a869bc04b0845bf94513082eb185f3a2da6423bd30db3b6ae7d342f541d5
BLAKE2b-256 checksum
How to use checksums
cba08ac712dae215ad74454d325da79cc08e66f503d2d74a3872ef5dfc61e8a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

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

Download URL databricks_labs_dqx-0.17.0-py3-none-any.whl
Size 575.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac416a91ea37f11f8f61c611274899b4b8ea39b5a99b7dba2d2c0ef9a816f679
BLAKE2b-256 checksum
How to use checksums
1d82c94b1b0412dc5903f894cc0698641cfb345b92494d3b7495543917d15d1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Security for databricks-labs-dqx 0.17.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 release files No provenance

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