You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide the option of displaying Explain Plans as JSON #6137
Is your feature request related to a problem or challenge?
Its a feature request - Currently the Explain plan can only be displayed as nested text. In a web based console, its not easy to render this in a user friendly way.
Describe the solution you'd like
It would be great to the option of having the Explain plan shown as a JSON document. If DataFusion is used as a query engine in a product with a web interface, its easier to render an explain plan in a user friendly way if its JSON rather than parsing out the current text format i.e. the JSON can be rendered easier in a browser in any way the app provider wishes.
changed the title [-]Have the option of displaying Explain Plans as JSON[/-][+]Provide the option of displaying Explain Plans as JSON[/+]on Apr 27, 2023
FWIW a form of this is already supported by datafusion-proto. You can convert the LogicalPlan / ExecutionPlan to the proto representation and then serialize that.
Activity
[-]Have the option of displaying Explain Plans as JSON[/-][+]Provide the option of displaying Explain Plans as JSON[/+]alamb commentedon Apr 27, 2023
This would be neat -- there is already some way to display plans using the graphviz (dot) format https://docs.rs/datafusion-expr/23.0.0/datafusion_expr/logical_plan/enum.LogicalPlan.html#method.display_graphviz which might get you started
tustvold commentedon Apr 28, 2023
FWIW a form of this is already supported by datafusion-proto. You can convert the LogicalPlan / ExecutionPlan to the proto representation and then serialize that.
Jefffrey commentedon Sep 15, 2025
Postgres JSON format for explain provided by #15166
EXPLAINformats via SQL #15021alamb commentedon Sep 15, 2025
For example