Estimates the cost of the original and rewritten version of a query.
Estimate the cost of running a query before and after Isofold optimization. This endpoint is primarily supported for BigQuery, where dry-run mode provides exact byte scan estimates. For other warehouses, estimates are heuristic-based.Documentation Index
Fetch the complete documentation index at: https://docs.isofold.com/llms.txt
Use this file to discover all available pages before exploring further.
GET request to /cost with a query parameter:
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | ✅ | Raw SQL query to evaluate |
| Field | Type | Description |
|---|---|---|
original_cost | number | Cost estimate of the unoptimized query (USD) |
optimized_cost | number | Cost estimate of the rewritten query (USD) |
savings | number | Difference between original and optimized cost |