superset_sqllab_estimate_query_cost
Estimate SQL query execution costs before running them to optimize database performance and resource usage.
Instructions
Estimate the cost of executing a SQL query
Makes a request to the /api/v1/sqllab/estimate endpoint to get approximate cost information for a query before executing it.
Args: database_id: ID of the database sql: SQL query to estimate schema: Optional schema name
Returns: A dictionary with estimated query cost metrics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | ||
| sql | Yes | ||
| schema | No |