Eliza DQ
Swiss knife of data quality.
One library. Any source. Warehouse SQL, Polars DataFrame, parquet, CSV, pandas.
Eliza DQ validates any data source with a single API. Point it at a warehouse table, a parquet file, a pandas DataFrame, or a database URI and get results in milliseconds.
pip install eliza-dq
On a warehouse (BigQuery, Athena, Snowflake, ...)
# eliza_checks/orders.yaml
connection:
type: bigquery
project: my-project-123
table: my-project-123.analytics.orders
sample_id: order_id # optional: cheaper sample queries on wide tables
checks:
- column: order_id
check: not_null
- column: amount
check: not_negative
- column: updated_at
check: freshness
max_age: 24h
pip install eliza-dq[bigquery]
eliza check --config orders
On a DataFrame or file
from eliza import check
# Polars DataFrame, pandas DataFrame, parquet, CSV, ndjson - all work
result = check("data.parquet", checks={
"order_id": ["not_null", "unique"],
"amount": ["not_null", "not_negative"],
"email": ["is_email"],
})
result.raise_on_fail()
On a production database (without running heavy queries on prod)
connection:
type: postgres
host: prod-db.internal
user: readonly
password: ${DB_PASSWORD}
database: production
engine: local # pulls data, checks locally with Polars
table: orders
filter: "created_at >= '2024-01-01'"
checks:
- column: order_id
check: not_null
Why Eliza
- You control what gets scanned -
sample_idandsample_columnslet you choose exactly which columns appear in sample queries. On per-byte warehouses (BQ, Athena) this cuts sample costs by up to 92% on wide tables. Soda always runsSELECT * - 2x faster on Athena than Soda Core (parallel samples + 20ms cold start vs 350ms). On BigQuery speed depends on slot scheduling
- Handles datasets that crash other tools - Polars LazyFrame streaming validates 259M rows from disk in 1.9s with constant memory. Pandera and GX OOM
- 2-3x faster on DataFrames than Pandera at constant memory
- Lightweight - 2 dependencies (polars + pyyaml) vs 30+ for Soda/GX
- Works with any source - same API for 8 warehouse connectors, parquet/CSV files, Polars/pandas DataFrames, and production databases
- PDF reports and Slack alerts built-in
Benchmarks
SQL Pushdown (Eliza vs Soda Core)
8 identical not_null checks + failed row samples. Both tools batch checks into a single SELECT. Both use LIMIT on sample queries. All measurements with use_query_cache=False. 3 interleaved runs, median time.
AWS Athena (Iceberg):
| Rows | Columns | Eliza | Soda Core |
|---|---|---|---|
| 179M | 10 | 13.8s | 27.1s |
| 492M | 20 | 18.3s | 38.4s |
Eliza is 1.6-1.8x faster on Athena. Advantage comes from parallel sample collection and lighter client (~176ms init vs ~350ms). On Athena, each query has fixed overhead (Glue metadata, S3 listing, queue), and parallel execution avoids paying it sequentially.
BigQuery on-demand (fresh tables, use_query_cache=False):
| Rows | Columns | Eliza | Soda Core | Ratio |
|---|---|---|---|---|
| 137M | 28 | 6.0s | 5.5s | 0.9x |
| 175M | 14 | 4.0s | 4.6s | 1.2x |
| 948M | 31 | 2.5s | 2.4s | 1.0x |
On BigQuery, speed depends heavily on slot scheduling and table caching. Eliza's parallel samples help when multiple checks fail; on clean tables the difference is in noise. On Athena, where each query has fixed overhead (Glue, S3, queue), parallel execution gives a consistent 2x advantage.
DWH cost with sample_id (BQ on-demand $6.25/TB, Athena $5/TB):
| Rows | Columns | Failing | Eliza + sample_id |
Soda / Eliza default | Savings |
|---|---|---|---|---|---|
| 1.2B | 56 | 6 | $1.60 | $20.36 | 92% |
| 137M | 28 | 3 | $0.22 | $1.97 | 89% |
| 428M | 21 | 1 | $0.59 | $1.15 | 48% |
Eliza gives you control over what gets scanned in sample queries. With sample_id, samples scan only 2 columns (ID + failing column) instead of SELECT * over all columns. BQ/Athena charge per byte scanned, so fewer columns = proportionally cheaper. On a 56-column table with 6 failing checks: 6 queries x 56 cols vs 6 queries x 2 cols = 28x less data scanned. You can also use sample_columns to pick exactly which columns to include. Aggregation cost is always the same -- both tools scan only the checked columns. Without sample_id, Eliza and Soda cost the same.
DataFrame Engine
NYC Yellow Taxi (Parquet). 5 checks, warmup + 3 runs, min time.
When the DataFrame is already in memory (notebook, mid-pipeline step):
All tools check everything (Pandera with lazy=True). Eliza returns fail counts, fail rates, and sample rows. Others raise an exception or return less detail.
| Rows | Eliza | Pandera | Dataframely | Pointblank | GX |
|---|---|---|---|---|---|
| 3M | 2ms | 21ms | 11ms | 36ms | 738ms |
| 10M | 4ms | 64ms | 28ms | 97ms | 2.9s |
| 41M | 14ms | 246ms | 237ms | 3.0s | 79s |
| 126M | 39ms | 918ms | 1.6s | 906ms | est. 250s+ |
Eliza is 24x faster than Pandera and 41x faster than Dataframely on 126M rows. GX includes pandas conversion (real-world usage). 126M tested with 4 columns to fit in RAM.
What you get back when checks fail:
| Eliza | Pandera | Dataframely | Pointblank | GX | |
|---|---|---|---|---|---|
| Fail count per check | Yes | No | No | Yes | Yes |
| Fail rate per check | Yes | No | No | Yes | No |
| Sample failing rows | Yes | No | Yes (all) | No | No |
| Structured result | Yes | Exception | Tuple | Report | Result |
| JSON / dict export | Yes | No | No | No | Yes |
| Exit code for CI | Yes | No | No | No | No |
When reading from files (S3, CI runner, Lambda, cron job):
Competitors need the entire dataset in memory as a DataFrame before running checks. Eliza streams via Polars LazyFrames and never loads the full dataset.
| Rows | Eliza | Eliza peak RAM | Full dataset size |
|---|---|---|---|
| 10M (3 files) | 33ms | ~200 MB | 1.2 GB |
| 41M (12 files) | 118ms | ~500 MB | 5.2 GB |
| 126M (24 files) | 528ms | ~860 MB | 3.8 GB (4 cols) |
| 259M (72 files) | 1.1s | ~820 MB | 7.6+ GB |
Eliza's peak RAM stays under 1 GB at all tested scales -- data streams through in chunks via Polars LazyFrames. Competitors must load all files into a single DataFrame first. At 259M rows with all columns that's 7.6+ GB, enough to OOM an 8 GB Lambda or CI runner. Streaming is a feature of Polars; Eliza's value is that 17 checks, fail counts, sample rows, and reports come on top of it. Reproducible:
python benchmarks/dataframe.py --full
Eliza vs Soda Core
| Eliza | Soda Core | |
|---|---|---|
| Athena speed | 2x faster (parallel samples + 20ms cold start) | Sequential samples, ~350ms cold start |
| BQ speed | Similar (slot scheduling dominates) | Similar |
Cost with sample_id |
Up to 92% cheaper | Always SELECT * for samples |
| Cost default | Scans checked columns only | SELECT * over all columns |
| Why cheaper | You control which columns get scanned. BQ/Athena LIMIT doesn't reduce cost -- price = columns in SELECT | No column control |
| Why cheaper | SELECT id, col for samples (you control which columns) |
SELECT * over all columns, LIMIT doesn't reduce BQ cost |
| Failed rows in CLI | Built-in, always visible | Hidden by default (DefaultSampler discards rows). Visible via LogSampler in Python API |
| Failed rows in Slack/PDF | Built-in | No |
| DataFrames | Polars streaming, 259M in 1.9s | No |
| Check batching | Single SELECT | Single SELECT |
Soda runs SELECT * for samples and by default discards the rows (DefaultSampler). To see them, you need scan.sampler = LogSampler() in Python -- not available from CLI or YAML. Even with LogSampler, it's still SELECT * over all columns. The sample limit is configurable in both tools (Soda default 100, Eliza default 10), but on BigQuery and Athena LIMIT doesn't reduce cost -- price is determined by columns in SELECT, not rows returned. One SELECT * sample query on a 56-column table costs the same as a full scan. Eliza by default selects only the checked columns, and with sample_id narrows further to ID + failing column.
Features
| Eliza | Soda | GX | Pandera | |
|---|---|---|---|---|
| SQL pushdown | 8 DWH | Yes | Yes | - |
| Parallel samples | Yes | - | - | - |
| Sample column control | Yes | - | - | - |
| Polars native | Yes | - | - | Yes |
| LazyFrame streaming | Yes | - | - | - |
| YAML config | Yes | Yes | Yes | - |
| Inline dict API | Yes | - | - | Yes |
| CLI | Yes | Yes | Yes | - |
| PDF report | Yes | - | - | - |
| Slack alerting | Yes | Yes | - | - |
| Auto-learn | Yes | - | Yes | Yes |
| Schema check | Yes | Yes | Yes | Yes |
| FK reference | Yes | Yes | Yes | - |
| Core deps | 2 | 30+ | 30+ | 7+ |
Checks
17 built-in checks, all work on both Polars and SQL:
| Check | What it does |
|---|---|
not_null |
No NULL values |
not_missing |
No NULLs or custom values ("", "N/A", "null") |
unique |
All values distinct |
not_negative |
No values below zero |
between |
Values within min/max range |
in_set |
Values in allowed list |
regex |
Match a pattern |
is_email |
Valid email format |
is_url |
Valid URL format |
min_length |
String minimum length |
max_length |
String maximum length |
freshness |
Data not older than threshold |
row_count |
Row count within range |
cross_column |
Compare two columns |
schema |
Validate column names and types |
reference |
FK integrity across tables |
custom_sql |
Your own SQL expression |
Warehouse Connectors
Install only what you need:
pip install eliza-dq[bigquery]
pip install eliza-dq[athena]
pip install eliza-dq[snowflake]
pip install eliza-dq[postgres]
pip install eliza-dq[clickhouse]
pip install eliza-dq[mysql]
pip install eliza-dq[databricks]
pip install eliza-dq[redshift]
Connection examples for all warehouses
# BigQuery
connection:
type: bigquery
project: my-project
location: US
# Athena
connection:
type: athena
region: us-east-1
schema: my_database
s3_staging_dir: s3://bucket/athena-results/
# Snowflake
connection:
type: snowflake
account: xy12345.us-east-1
user: eliza_user
password: ${SF_PASSWORD}
warehouse: COMPUTE_WH
database: ANALYTICS
schema: PUBLIC
# PostgreSQL
connection:
type: postgres
host: localhost
port: 5432
user: postgres
password: ${PG_PASSWORD}
database: mydb
# MySQL
connection:
type: mysql
host: localhost
user: root
password: ${MYSQL_PASSWORD}
database: mydb
# ClickHouse
connection:
type: clickhouse
host: localhost
port: 8123
user: default
database: mydb
# Databricks
connection:
type: databricks
host: adb-123.azuredatabricks.net
http_path: /sql/1.0/warehouses/abc
token: ${DBX_TOKEN}
# Redshift
connection:
type: redshift
host: cluster.region.redshift.amazonaws.com
database: analytics
user: eliza_user
password: ${RS_PASSWORD}
Alerting & Reporting
from eliza import check
from eliza.alert import send_slack, send_webhook
from eliza.report import generate_pdf
result = check(config="orders")
# Slack - choose any channel, attach PDF
send_slack(
result,
token="xoxb-...",
channel="C0ALERTS",
pdf=True,
name="orders",
)
# PDF report
generate_pdf(result, name="orders")
# Generic webhook (Discord, Teams, PagerDuty)
send_webhook(result, url="https://your-webhook-url/...")
pip install eliza-dq[report] # for PDF reports
|
Slack Alert |
PDF Report |
Orchestrator Integration
Airflow
@task
def dq_check():
from eliza import check
from eliza.alert import send_slack
result = check(config="orders")
if not result.passed():
send_slack(result, token="xoxb-...", channel="C...", pdf=True, name="orders")
result.raise_on_fail()
return result.to_dict()
Dagster
@asset_check(asset=orders)
def orders_quality():
from eliza import check
result = check(config="orders")
return AssetCheckResult(
passed=result.passed(),
metadata={"summary": result.summary()},
)
GitHub Actions
steps:
- run: pip install eliza-dq
- run: eliza check --config orders --source data/orders.parquet
Any orchestrator
result = check(config="orders")
result.raise_on_fail() # RuntimeError (Airflow, Dagster, Prefect)
result.exit_code # 0/1/2 (bash, CLI, GitHub Actions)
result.to_dict() # dict (XCom, metadata)
result.to_json() # JSON string (APIs)
result.summary() # "3 passed, 1 failed (1M rows, 42ms)"
Architecture
SQL pushdown: All inline checks batched into one SELECT (single table scan). Separate checks (unique, freshness) and sample queries run in parallel via ThreadPoolExecutor with thread-local connections. Samples use SELECT column_list with LIMIT N instead of SELECT *.
Polars engine: Streaming with per-column grouping. Files scanned as LazyFrames - data streams through without loading into RAM. Failed row samples via .filter().head(N).collect(engine="streaming").
OLTP mode: engine: local pulls data through the connector, checks locally with Polars. Safe for production databases.
License
MIT
Metadata
Release files for eliza-dq 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eliza_dq-0.2.1.tar.gz | 488.1 kB | With provenance | Details for eliza_dq-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eliza_dq-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for eliza_dq-0.2.1-py3-none-any.whl |
Total release size: 522.9 kB
Release files / eliza_dq-0.2.1.tar.gz
| Download URL | eliza_dq-0.2.1.tar.gz |
|---|---|
| Size | 488.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b722d3a6886edcab728b131a423fdeedbf371b40641f97c8711a6b7aa7495450
|
|
BLAKE2b-256 checksum How to use checksums |
04dec72a1f3eb55e156813be17f9c19fb645f8bbb75f6678302e6f6f03066246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logRelease files / eliza_dq-0.2.1-py3-none-any.whl
| Download URL | eliza_dq-0.2.1-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ab79f95fa4f8ca3222824e22e0af916f3b053d7b37eb8b08e6c6f15d6c59e2d
|
|
BLAKE2b-256 checksum How to use checksums |
fb4e4a8574c7988105926dc913bdc8df9df0c04c8070e1ba6981003242618178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logSecurity for eliza-dq 0.2.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eliza_dq-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.
Transparency logA 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.