Skip to main content

spark-data-quality

Data Quality validation library for Kubernetes Spark pods. Runs Great Expectations and Trino SQL checks against any table, then persists results to a DQ Engine API.

Installation

pip install spark-data-quality

Usage

from spark_dq.quality import SparkDQAgent

agent = SparkDQAgent(
    catalog="my_catalog",
    schema="my_schema",
    table="my_table",
    data_quality_url="http://dq-engine:8000/api/v1/spark",
    trino_host="trino:443",
    trino_user="user",
    trino_pwd="pwd",
)

cfg = agent.fetch_table_config()
results = agent.execute_data_quality(df)

fetch_table_config()

Fetches the table's configuration from the DQ Engine, including the SQL query to load data, active test suites with their expectations, and scan limits. The config is cached after the first call.

execute_data_quality(df)

Runs all test suites against the provided Spark DataFrame. Expectations are split into two concurrent paths:

  • Trino fast-path — null checks, uniqueness, range, regex via a single SQL query
  • GE slow-path — all other expectation types via parallel Great Expectations validators

Suites run in parallel (up to 8 concurrently). Results are saved to the DQ Engine and per-suite statistics are returned.

If Trino credentials are not provided, all expectations run through Great Expectations only.

License

MIT

Download files

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

Source Distribution

spark_data_quality-1.0.12.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

spark_data_quality-1.0.12-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file spark_data_quality-1.0.12.tar.gz.

File metadata

  • Download URL: spark_data_quality-1.0.12.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for spark_data_quality-1.0.12.tar.gz
Algorithm Hash digest
SHA256 b832bb8b33327b3399d770e65d0b75337c69ec182f3c03bfbeb689e0775b477d
MD5 c2aa38cf67d3256c3c915b8b7680faa1
BLAKE2b-256 b744c48ff178703b0eda0160d26dcd2f1eadb162ce5147a1811028579f3a32c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for spark_data_quality-1.0.12.tar.gz:

Publisher: ci.yml on saal-core/digixt-quality-package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spark_data_quality-1.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for spark_data_quality-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 39845a7dd947c7a1f1d40c1fc21d6451478f2d21fffc755b67b399dd598849d0
MD5 ad79cbfb61238a7c757dccfea169de7c
BLAKE2b-256 dfe3e267a53d746f34f1c1759fcd0a05639a7458109b74c565cfd430d3b00095

See more details on using hashes here.

Provenance

The following attestation bundles were made for spark_data_quality-1.0.12-py3-none-any.whl:

Publisher: ci.yml on saal-core/digixt-quality-package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.1.1

2 files

1.1.0

2 files

1.0.14

2 files

This release

1.0.12 This release

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

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