Skip to main content

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

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.7.tar.gz (14.7 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.7-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spark_data_quality-1.0.7.tar.gz
Algorithm Hash digest
SHA256 09b9765d392f072a6b7525367c44a3ef5ae631a08a558e57cb5c3ce56fd5d1e3
MD5 491103448b38f71f50fbd1194088d594
BLAKE2b-256 8d69bed205284cd13f31e50a79b8aeeada0ad6799a17ec9390943aca4131f410

See more details on using hashes here.

Provenance

The following attestation bundles were made for spark_data_quality-1.0.7.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.7-py3-none-any.whl.

File metadata

File hashes

Hashes for spark_data_quality-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3db5b96bda13c1f55bb523f0d18576107505a267a4557fc8ef7155230cd155a8
MD5 8687048d87262948911cb6395dc719a3
BLAKE2b-256 b8f0ac036628c83baad1ab5e99793d1750a2ac8630e7a1ec041ec2a838a69c38

See more details on using hashes here.

Provenance

The following attestation bundles were made for spark_data_quality-1.0.7-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

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

This release

1.0.7 This release

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