Change default EXPLAIN format in datafusion-cli to tree format#15427
Merged
alamb merged 10 commits intoapache:mainfrom Mar 31, 2025
Merged
Change default EXPLAIN format in datafusion-cli to tree format#15427alamb merged 10 commits intoapache:mainfrom
EXPLAIN format in datafusion-cli to tree format#15427alamb merged 10 commits intoapache:mainfrom
Conversation
alamb
commented
Mar 25, 2025
| assert_cmd_snapshot!(cmd); | ||
| } | ||
|
|
||
| #[rstest] |
Contributor
Author
There was a problem hiding this comment.
I could not get these to work as additional examples in quick_test for reasons I couldn't figure out. So I just made a new test
Collaborator
There was a problem hiding this comment.
Collaborator
There was a problem hiding this comment.
this works
Contributor
Author
There was a problem hiding this comment.
Thanks, pulled into this branch
c7ced76 to
cfa9171
Compare
EXPLAIN format in datafusion-cli to tree format
Collaborator
Contributor
Author
this is a good call -- I will fix that |
Contributor
Author
|
Run extended tests |
Contributor
Author
|
Run extended tests |
Contributor
Author
I pushed a fix and a test for this |
Contributor
Author
|
I'll plan to merge this one tomorrow unless anyone else would like time to comment |
Contributor
Author
|
🚀 📖 THanks again @blaginin and @xudong963 |
This was referenced Apr 14, 2025
nirnayroy
pushed a commit
to nirnayroy/datafusion
that referenced
this pull request
May 2, 2025
…pache#15427) * Change default explain plan to `tree` * Add tests * remove unecessary changes * more unecessary changes * Move test cases * Respect environment variable for explain plan * Fix format * fmt --------- Co-authored-by: blaginin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Which issue does this PR close?
treeexplain by default #15343Rationale for this change
We have nice explain plans, let's default DataFusion cli to use them
What changes are included in this PR?
Note that as discussed on #15343, this ONLY affects datafusion-cli. Any downstream project that wants nicer explain plans by default can adjust the configuration settings
Are these changes tested?
Yes with new tests
Are there any user-facing changes?
EXPLAINin datafusion-cli will now use the new explain tree format. For example:You can get the previous indent explain plan by asking for it explicitly: