- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.7k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The ability to get a graphviz render of the LogicalPlans is awesome, it would be even more awesome to have a similar facility for PhysicalPlans.
The way I'd envisage this working is with a new method added to the ExecutionPlan trait
fn fmt_for_explain(&self, f: &mut fmt::Formatter) -> fmt::Result;
This is copied wholesale from UserDefinedLogicalNode and would function in much the same way. This would have a default placeholder implementation to avoid this being a breaking change.
A public free function would then be added to visit each node in a provided ExecutionPlan tree in turn and use this fmt_for_explain along with the existing schema function to produce a graphviz representation. (This could also be a trait function if preferred).
FYI @alamb
alamb and andygrove
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request