icetrace
Cut Apache Iceberg query & storage bills in 10 seconds.
Zero data scanned. Read-only. Finds silent pruning bugs, dead snapshot storage, and exact fix ROI — from your terminal, Cursor, or Claude Code.
icetrace connects to your catalog (AWS Glue, Polaris, Lakekeeper, Nessie, S3 Tables, Hive, or SQL), reads only metadata (zero data files scanned, strictly read-only), and shows you in seconds:
- Where you're losing money right now — X-ray an entire database and rank the worst tables
0–100(icetrace scan) - Exactly why a query is slow or expensive — pinpoint silent pruning failures before running another query (
icetrace explain) - What each fix is actually worth — quantify reclaimable S3 storage (
$/mo) and projected query scan reduction (%&$/mo) before paying for a rewrite (icetrace roi)
Try It in 5 Seconds (No Credentials Required)
uvx icetrace demo
Or point it straight at your own catalog — read-only, zero infrastructure to deploy:
# 1. X-ray an entire database: rank worst tables by pruning waste & reclaimable S3 storage
ICETRACE_CATALOG_TYPE=glue icetrace scan --namespace analytics
# 2. Quantify wasted snapshot storage & What-If ROI before running compaction
ICETRACE_CATALOG_TYPE=glue icetrace roi analytics.events
# 3. Debug why a specific WHERE clause scanned too much data
ICETRACE_CATALOG_TYPE=glue icetrace explain analytics.events \
--where "event_ts >= '2026-11-20' AND tenant_id = 'org_prod_01'"
Ask Directly Inside Cursor or Claude Code (MCP)
Keep your SQL, dbt models, or table definitions open and ask in plain English:
"Scan our
analyticsdatabase and tell me which 3 Iceberg tables are wasting the most query cost or S3 storage."
"Why didWHERE tenant_id = 'org_prod_8491'scan 180 GB onanalytics.events, and how much would fixing it save?"
Claude Code:
claude mcp add --transport stdio --scope user icetrace -- uvx --from "icetrace[glue]" icetrace-mcp
Cursor (.cursor/mcp.json or ~/.cursor/mcp.json):
{
"mcpServers": {
"icetrace": {
"command": "uvx",
"args": ["--from", "icetrace[glue]", "icetrace-mcp"],
"env": {
"ICETRACE_CATALOG_TYPE": "glue",
"AWS_PROFILE": "${env:AWS_PROFILE}",
"AWS_REGION": "us-east-1"
}
}
}
}
Why Teams Actually Use This
Query engines (Athena, Trino, Spark, ClickHouse, Snowflake) execute your query and hand you the bill — they don't tell you why Iceberg failed to skip files. icetrace catches the exact silent traps that cause 10x–100x over-scanning:
- Columns past #32 have zero bounds (
MISSING_METRICS_COL_LIMIT) — Iceberg stops recording min/max stats after column 32 by default. - 16-char string truncation collisions (
TRUNCATED_BOUNDS) — defaulttruncate(16)collapses prefixed IDs/URIs (org_prod_us_east_...) across every file, turning data skipping to 0%. - Compaction destroyed your clustering (
OVERLAPPING_RANGES) — binpack or arrival-order writes make every file span the full domain (overlap = 0.98). - Missing writer stats & interleaved manifests — catches zero-copy
add_filesjobs that omitted Parquet stats, evolved partition-spec mismatches, and V2/V3 delete-file amplification. - Ghost storage in old snapshots — measures exact historical-only bytes locked in un-expired snapshots.
Install
# Zero-install (recommended)
uvx icetrace demo
# Homebrew (macOS / Linux)
brew tap sanspareilsmyn/icetrace https://github.com/sanspareilsmyn/icetrace
brew install icetrace
# uv tool (with AWS Glue & S3)
uv tool install "icetrace[glue]"
Works out of the box with ~/.pyiceberg.yaml, ICETRACE_CATALOG_TYPE (glue, rest, sql, hive), and standard AWS/GCP credentials.
7 Read-Only Tools (CLI & MCP)
| CLI / MCP Tool | What You Get (Metadata Only) |
|---|---|
scan / scan_catalog |
Concurrently X-ray all tables in a database, score 0–100, rank worst offenders by cost & waste. |
roi / simulate_roi |
Historical snapshot S3 waste ($/mo) + What-If scan reduction (% & Athena $/mo) per fix. |
explain / explain_scan |
4-stage pruning funnel (100% parity with PyIceberg plan_files()) + per-file root-cause attribution. |
audit / audit_pruning_health |
Per-column pruning grade (A–F), bounds coverage, truncate(N) collision %, and $O(N \log N)$ sweep-line overlap ratio. |
diff / diff_snapshots |
Pinpoint which commit spiked manifests, dropped bounds, or regressed query pruning. |
inspect / inspect_table_layout |
Instant metadata.json view (format version, column ordinals, evolved partition specs, sort order). |
tables / list_tables |
Catalog & namespace discovery. |
Safe on Production Tables
- Strictly Read-Only — never mutates, compacts, or expires tables (
readOnlyHint: true,destructiveHint: false). - Zero Data Scanned — reads only
metadata.json, manifest lists, and manifest Avro files (16-way concurrent, bounded bymax_manifests). - 100% Local — credentials and metadata never leave your machine.
Roadmap · Changelog · Agent Skill · Contributing · Apache-2.0
Metadata
Release files for icetrace 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 |
|---|---|---|---|---|
| icetrace-0.2.1.tar.gz | 283.4 kB | With provenance | Details for icetrace-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| icetrace-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for icetrace-0.2.1-py3-none-any.whl |
Total release size: 334.1 kB
Release files / icetrace-0.2.1.tar.gz
| Download URL | icetrace-0.2.1.tar.gz |
|---|---|
| Size | 283.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
974392d5cb130e614c95488380f2f54564149363dcb8b1488a16b5c9fea9c5a2
|
|
BLAKE2b-256 checksum How to use checksums |
3dacf13181327c65f68ee9d8ea29ce62a8285bb74ab45742856104bd79d6c724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logRelease files / icetrace-0.2.1-py3-none-any.whl
| Download URL | icetrace-0.2.1-py3-none-any.whl |
|---|---|
| Size | 50.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b11aea9ed3a4163fc5d3e3f098e68609433a3d499c28bab502b57c0a424512ac
|
|
BLAKE2b-256 checksum How to use checksums |
93cc3e77a75a7a48fad8da273efff6f041732ee5ab1c9c313da91a2ea3a6f97c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 24, 2026.
Transparency logSecurity for icetrace 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 icetrace-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 Nov 24, 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.