Skip to main content

soda-singlepass

Unofficial 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

Merged: the first aggregation query (row_count, missing, failed-rows conditions, etc.) and all duplicate_count queries of a partition. Schema checks, fail query checks and failed-row sample queries run as in stock Soda. Duplicate samples are still fetched by Soda when a duplicate check fails.

Test

pip install -e .[test] && pytest

Metadata

Release files for soda-singlepass 0.1.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.1.0
File Size Uploaded Provenance Actions
soda_singlepass-0.1.0.tar.gz 9.3 kB Without provenance Details for soda_singlepass-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.8 kB

Release files / soda_singlepass-0.1.0.tar.gz

Download URL soda_singlepass-0.1.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3e978baec3b7c5f3a5e995b310f298454e6a004ee43a372c2cf00e2277dbca0a
BLAKE2b-256 checksum
How to use checksums
c19285befc4aa5a048504d2613b23137b53420cebf4a68af1c22a90845826886
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.1.0-py3-none-any.whl

Download URL soda_singlepass-0.1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9e31ae0b78f7f505df5028e36b504e94d81dc9648b189d6368dd5625224dc6f
BLAKE2b-256 checksum
How to use checksums
97debc2cbfb14800a35c8f9e8c1114b0073e8dc5829740ddb22b8f5bebe7a002
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.1.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.1.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