explain_query
Show DuckDB execution plans for SELECT queries without returning rows, and use analyze mode to inspect per-operator timings and row counts when diagnosing slow queries.
Instructions
Show DuckDB's execution plan for a SELECT query without returning its rows.
Useful to check whether a filter is pushed down into a Parquet scan, or why a query is
slow. With analyze=true the query is actually executed and per-operator timings and
row counts are included (still read-only, still time-limited). Same SQL rules and file
naming as query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| analyze | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |