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.2

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.2
File Size Uploaded Provenance Actions
databricks_labs_dqx-0.17.2.tar.gz 516.2 kB Without provenance Details for databricks_labs_dqx-0.17.2.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / databricks_labs_dqx-0.17.2.tar.gz

Download URL databricks_labs_dqx-0.17.2.tar.gz
Size 516.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5da800dd60b3aa3cd74604aa93d609cbc32d2e14c6973d7e874101f3ec95ff67
BLAKE2b-256 checksum
How to use checksums
effe589e05a9017856711f3b9e76ba4bc040dad5ada1e48d9aeedb533bf63317
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.2-py3-none-any.whl

Download URL databricks_labs_dqx-0.17.2-py3-none-any.whl
Size 579.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59213089bd2a229e24c374ecbd5af86bfcd3d6a56eafaff917a210f0934e6a37
BLAKE2b-256 checksum
How to use checksums
d3cdca9eab2953a39f4b5b3c25494973da6343d0dc64ebacda9a81c746cf4faa
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.2

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.2 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