icetrace
X-ray your Apache Iceberg tables in 10 seconds without Spark — find silent pruning bugs, wasted snapshot storage, and exact fix ROI.
Your Iceberg tables look healthy — 256 MB files, compaction enabled — yet queries still scan 95% of the data, and un-expired snapshots quietly leak terabytes of S3 storage.
icetrace reads only Iceberg metadata (never Parquet data files, strictly read-only, 16-way concurrent Avro reads). Point it at your AWS Glue or REST catalog and in seconds it:
- X-Rays your entire database (
icetrace scan) — ranks your worst-pruning, highest-waste tables0–100without typing a single SQL query. - Simulates Iceberg's 4-stage scan planner (
icetrace explain) — proves why files weren't pruned (MISSING_METRICS_COL_LIMITpast col #32,truncate(16)prefix collisions,OVERLAPPING_RANGES, evolved partition specs). - Quantifies storage waste & What-If ROI (
icetrace roi) — exact reclaimable S3 GB/month from historical snapshots + projected Athena scan reduction (%&$/mo) before you pay for a Spark rewrite.
Try It in 5 Seconds (Zero Credentials Required)
uvx icetrace demo
Predicate: tenant_id = 'org_prod_us_east_03_0042'
Stage 1 Manifest List 8 evaluated ──▶ 0 pruned ──▶ 8 surviving (0.0%)
Stage 2 Partitions 8 evaluated ──▶ 0 pruned ──▶ 8 surviving (0.0%)
Stage 3 Column Bounds 8 evaluated ──▶ 0 pruned ──▶ 8 surviving (0.0%)
Root Cause: TRUNCATED_BOUNDS (8/8 files)
tenant_id uses Iceberg's default truncate(16). All 8 files share prefix
'org_prod_us_east', collapsing min/max bounds and disabling data skipping.
Per-Column Pruning Readiness (O(N log N) Domain-Weighted Sweep-Line)
# Column Mode Bounds Overlap Trunc% Grade
1 event_id truncate(16) 100% 0.00 0% A ✓ well-sorted
2 tenant_id truncate(16) 100% 1.00 100% F ✗ truncate(16) collision
3 amount truncate(16) 100% 0.98 0% F ✗ overlapping ranges
35 trace_key none 0% - 0% F ✗ past 32-col metrics cutoff
X-Ray Your Entire Catalog in One Command
# Scan an entire Glue / REST database (strictly read-only, metadata-only)
ICETRACE_CATALOG_TYPE=glue icetrace scan --namespace analytics
# Simulate What-If ROI before running expensive compaction
ICETRACE_CATALOG_TYPE=glue icetrace roi analytics.events
# Explain 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'"
Use Inside Cursor or Claude Code (MCP)
Ask your agent directly while your SQL, dbt model, or table DDL is open:
"Run
scan_catalogonanalyticsand show me the top 3 tables wasting the most scan bytes or S3 storage."
"Runexplain_scanonanalytics.eventsforWHERE tenant_id = 'org_prod_8491'. Why did Athena scan 180 GB?"
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"
}
}
}
}
Works with AWS Glue, REST Catalogs (Polaris, Lakekeeper, Nessie, Unity, S3 Tables), Hive, and SQL via ~/.pyiceberg.yaml or ICETRACE_CATALOG_TYPE env vars.
Install
# Zero-install
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]"
7 Read-Only Forensic Tools (CLI & MCP)
| CLI / MCP Tool | What It Proves (Metadata Only) |
|---|---|
scan / scan_catalog |
Concurrently X-Rays all tables in a namespace/catalog, scores each 0–100, and ranks worst offenders by pruning bugs & reclaimable storage. |
explain / explain_scan |
4-stage scan-planning simulator (100% parity with PyIceberg plan_files()) + per-file survival root-cause attribution (6 root causes). |
roi / simulate_roi |
Historical snapshot storage waste (S3 GB & $/mo) + What-If scan reduction (% & Athena $/mo) for sort compaction, full metrics, and manifest rewrites. |
audit / audit_pruning_health |
Per-column bounds coverage, truncate(N) collision %, $O(N \log N)$ sweep-line overlap ratio, manifest interleaving, small files, and V2/V3 delete amplification. |
diff / diff_snapshots |
Pinpoints which snapshot spiked manifests, dropped bounds coverage, or regressed pruning for a query. |
inspect / inspect_table_layout |
Instant metadata.json dump (zero manifest reads): format version, column ordinals & resolved metrics modes, evolved partition specs, sort order. |
tables / list_tables |
Catalog/namespace discovery. |
Safety Guarantees
- Strictly Read-Only: Never mutates, compacts, or expires tables (
readOnlyHint: true,destructiveHint: falseon all 7 MCP tools). - Metadata-Only: Only reads
metadata.json, manifest lists, and manifest Avro files — never scans Parquet/ORC data. - Bounded Cost: Enforces
max_manifestsguardrails so huge production tables never hang or burn S3 GETs. - Local & Zero-Telemetry: Credentials and metadata never leave your machine.
Roadmap · Changelog · Agent Skill · Contributing · Apache-2.0
Metadata
Release files for icetrace 0.2.0
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.0.tar.gz | 283.0 kB | With provenance | Details for icetrace-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| icetrace-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for icetrace-0.2.0-py3-none-any.whl |
Total release size: 333.6 kB
Release files / icetrace-0.2.0.tar.gz
| Download URL | icetrace-0.2.0.tar.gz |
|---|---|
| Size | 283.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b23f578357129bd7a3023d48ea14e837961d15457e63ff37010af17d9016bbec
|
|
BLAKE2b-256 checksum How to use checksums |
01189087a3b0803ee6b988196d8adf9885341ed265fd18f694d1ae1c6b246db6
|
| 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.0-py3-none-any.whl
| Download URL | icetrace-0.2.0-py3-none-any.whl |
|---|---|
| Size | 50.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
748e6422ed53267b623fabca3f063b5c4cca379325355d81922fcf15e534b1c2
|
|
BLAKE2b-256 checksum How to use checksums |
024253856e332925ee610ea2bf5f6d208e81b9185d31948ac5057dfd17d8eac6
|
| 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.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for icetrace-0.2.0.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.