Skip to content

[DISCUSS] Switch to tree explain by default #15343

@alamb

Description

@alamb

ss### Is your feature request related to a problem or challenge?

Thanks to @irenjj @zebsme @Standing-Man and others we have beautiful tree explains. See

However the current default explain plan that most users will see uses the classic indent mode which includes quite a bit of detail that requires expertise to see and understand the plan (see example below)

Describe the solution you'd like

I would like to discuss using the tree mode by default (if you just run EXPLAIN ...) as that is the first introduction to DataFusion plans for many users.

(and if course I have DuckDB envy many times)

Describe alternatives you've considered

I think we could simply change the default value of datafusion.explain.format to tree

> set datafusion.explain.format = tree;
0 row(s) fetched.
Elapsed 0.000 seconds.

I think the biggest part of this ticket will be updating all the tests

Most tests that use the indent mode should continue to use the indent mode as it contains more information. In other words the tests should not be updated to use the tree mode

Additional context

No response

Metadata

Metadata

Assignees

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