Skip to main content

soda-singlepass

Add-on for soda-core-spark-df / soda-core. Not affiliated with Soda.

Stock Soda runs, per table partition, one aggregation query plus one query per duplicate_count metric. This package folds the duplicate counts into the aggregation query (window functions), so each table is scanned once. Soda's own query, metric and check code still runs on the fetched values, so logs, check outcomes and build_scan_results() keep their usual shape.

If the combined query fails, Soda falls back to its normal queries for that table.

Use (opt-in, nothing is patched globally)

Drop-in Scan:

from soda_singlepass import Scan   # instead of: from soda.scan import Scan

Or scope it around existing code that creates its own Scan:

import soda_singlepass

with soda_singlepass.enabled():
    run_my_existing_soda_function(checks)

Importing the package changes nothing for scans that don't use Scan or enabled().

Scope

Per table partition (same filter), one query now covers:

  • all aggregation queries (row_count, missing, invalid, failed-rows fail condition counts, ...), including the extra ones Soda creates beyond 50 metrics, and
  • all duplicate_count queries.

When several missing_count / invalid_count checks fail, their failed-row samples are fetched with one shared SELECT ... WHERE a OR b ... LIMIT n instead of one query each. A check whose sample would be starved by the shared limit runs its own stock sample query, so each check still gets its samples.

Still run as in stock Soda: schema checks, fail query and other user-written SQL (not safe to merge), reference/group-by checks, duplicate samples (fetched only when a duplicate check fails) and the failed-rows sample of fail condition checks. Different partitions (different filters) are not merged with each other.

Test

pip install -e .[test] && pytest

Metadata

Release files for soda-singlepass 0.2.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 soda-singlepass 0.2.0
File Size Uploaded Provenance Actions
soda_singlepass-0.2.0.tar.gz 11.9 kB Without provenance Details for soda_singlepass-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for soda-singlepass 0.2.0
File Interpreter ABI Platform Actions
soda_singlepass-0.2.0-py3-none-any.whl Python 3 none any Details for soda_singlepass-0.2.0-py3-none-any.whl

Total release size: 26.2 kB

Release files / soda_singlepass-0.2.0.tar.gz

Download URL soda_singlepass-0.2.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c4878869a24d41e1cf3cc8f64e40edc215ecef46a7229aa385ef274b87692666
BLAKE2b-256 checksum
How to use checksums
5e0b10a88425721e3301bd3392d09550aec37fc2d55a26cfdc4de7aff36344ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / soda_singlepass-0.2.0-py3-none-any.whl

Download URL soda_singlepass-0.2.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97ebb30ededddf82912c277caa3a93ee08bf5c925f77eb4e301436d5ea6b32d0
BLAKE2b-256 checksum
How to use checksums
7a195aad9f18082f24bcd57b7c21557c27ce8da26d33ded3ff5badbafe9e6b88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for soda-singlepass 0.2.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.2.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