superset_sqllab_estimate_query_cost
Estimate SQL query execution cost before running it. Fetches approximate cost metrics from Superset SQL Lab to help validate or optimize queries before execution.
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
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| schema | No | ||
| database_id | Yes |