doris_explain_query
Inspect Doris SQL execution plans with EXPLAIN, VERBOSE, or GRAPH output to diagnose join and scan distribution before optimizing queries.
Instructions
看执行计划:EXPLAIN / EXPLAIN VERBOSE / EXPLAIN GRAPH。 graph 输出 ASCII 执行图,排查 join/scan 分布最直观(1.2 实测可用)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "doris_explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | 要分析的只读 SQL(SELECT/WITH) | |
| format | No | plan(默认)/ verbose / graph | plan |
| database | No | 可选,切换到的库 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |