SparkDQAgent — Data Quality validation package for K8s Spark pods
Project description
spark-data-quality
Data Quality validation library for Kubernetes Spark pods. Runs Great Expectations and persists results to a DQ Engine API.
Usage
Single table
from spark_dq.quality import SparkDQAgent
agent = SparkDQAgent(
catalog="my_catalog",
schema="public",
table="sales_data",
data_quality_url="http://dq-engine:8000/api/v1/spark",
catalog_type="unmanaged",
test_suite_id=37,
trino_host="sql-host:443",
trino_user="user",
trino_pwd="pwd",
)
cfg = agent.get_config() # single GET /config call
results = agent.validate(df) # hybrid SQL + GE execution
Suite run (auto-discover tables)
agent = SparkDQAgent(
catalog="", schema="", table="",
data_quality_url="http://dq-engine:8000/api/v1/spark",
catalog_type="unmanaged",
test_suite_id=37,
)
table_configs = agent.get_all_table_configs() # returns list of per-table configs
Hybrid execution
When SQL engine credentials are provided, the agent splits expectations into two paths:
| Path | Assertion types | How |
|---|---|---|
| SQL fast-path | not_be_null, be_unique, be_between, match_regex, row_count_to_be_between |
Single batched SQL query |
| GE slow-path | All others | Parallel in-memory GE validators |
Both paths run concurrently. Results are merged and saved via POST /save-results.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spark_data_quality-1.0.6.tar.gz.
File metadata
- Download URL: spark_data_quality-1.0.6.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7b8a0777aa7aad12557ada0a1fe5a8e631ac9ddf2009a8f6c439bcf7aa01983
|
|
| MD5 |
3e22b28667ae19d676a4a5c25af6e199
|
|
| BLAKE2b-256 |
812a4a9b6496687c3c0338723eefd218f6d9b86705d1a679851488b0070f14d2
|
Provenance
The following attestation bundles were made for spark_data_quality-1.0.6.tar.gz:
Publisher:
ci.yml on saal-core/digixt-quality-package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spark_data_quality-1.0.6.tar.gz -
Subject digest:
f7b8a0777aa7aad12557ada0a1fe5a8e631ac9ddf2009a8f6c439bcf7aa01983 - Sigstore transparency entry: 2205338749
- Sigstore integration time:
-
Permalink:
saal-core/digixt-quality-package@084301693daaf7e76eebb29e4dc762059c4be8e7 -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/saal-core
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@084301693daaf7e76eebb29e4dc762059c4be8e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spark_data_quality-1.0.6-py3-none-any.whl.
File metadata
- Download URL: spark_data_quality-1.0.6-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed7edf499014fea209aeeeaaf88f46233ab27fa5fe5a9c5ed16849f41caeade
|
|
| MD5 |
c414c2c4caad76aaa53681265d344716
|
|
| BLAKE2b-256 |
84b1d9659a780458da58544e55c9056f2b9e7f81c26bf85c7294322d8e69cb9c
|
Provenance
The following attestation bundles were made for spark_data_quality-1.0.6-py3-none-any.whl:
Publisher:
ci.yml on saal-core/digixt-quality-package
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spark_data_quality-1.0.6-py3-none-any.whl -
Subject digest:
3ed7edf499014fea209aeeeaaf88f46233ab27fa5fe5a9c5ed16849f41caeade - Sigstore transparency entry: 2205338771
- Sigstore integration time:
-
Permalink:
saal-core/digixt-quality-package@084301693daaf7e76eebb29e4dc762059c4be8e7 -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/saal-core
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@084301693daaf7e76eebb29e4dc762059c4be8e7 -
Trigger Event:
push
-
Statement type: