Skip to content

Graphviz PhysicalPlan #219

@tustvold

Description

@tustvold

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions