Skip to content

feat: Allow tree explain format width to be customizable #16827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nuno-faria
Copy link
Contributor

Which issue does this PR close?

  • N/A.

Rationale for this change

Allows larger plans to be fully rendered in the tree format with the datafusion.explain.tree_maximum_render_width config.

Also fixes a bug with the tree format that was showing a partial render for larger plans:

  • Before:
    image

  • After:
    image

What changes are included in this PR?

  • Added the datafusion.explain.tree_maximum_render_width config.
  • Updated the display code to use the custom render width.
  • Added sqllogictests.

Are these changes tested?

Yes

Are there any user-facing changes?

The previous render width remains the default value.

- Also fix a bug in the tree format.
@github-actions github-actions bot added documentation Improvements or additions to documentation core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) common Related to common crate physical-plan Changes to the physical-plan crate labels Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate core Core DataFusion crate documentation Improvements or additions to documentation physical-plan Changes to the physical-plan crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant