int_orders_reuse_2c12a4cd
orders + customers + refunds → reusable completed-order facts7 projected columns
4 rewritten consumers
Amortize finds exact repeated first-CTE bodies in a DataHub query workload, writes one dbt model, rewrites every matching consumer, and proves the results stay identical.
Four share fingerprint 2c12a4cd…. Select any ribbon to inspect it, then collapse the repeated group.
orders + customers + refunds → reusable completed-order factsShares the repeated customer_order_facts CTE and is included in the consolidation group.
Each original and rewritten query ran against the included warehouse fixture. SHA-256 covers ordered columns plus lexicographically sorted JSON rows.
The recorded five-query workload produces one four-query cluster, one executable model, four rewritten consumers, and four identical result hashes in DuckDB.
This public proof uses captured DataHub-shaped catalog context and a local warehouse fixture. It does not claim a live tenant session, production cost savings, or an applied graph write.
python -m venv .venv && .venv/bin/pip install -e '.[dev]'..venv/bin/pytest -q../scripts/demo.sh, then inspect examples/sample-output/evidence_manifest.json.