Skip to content

Comments

Support LogicalPlan Debug differently than Display#11774

Merged
alamb merged 5 commits intoapache:mainfrom
lewiszlw:logical-plan-debug
Aug 4, 2024
Merged

Support LogicalPlan Debug differently than Display#11774
alamb merged 5 commits intoapache:mainfrom
lewiszlw:logical-plan-debug

Conversation

@lewiszlw
Copy link
Member

@lewiszlw lewiszlw commented Aug 2, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

LogicalPlan implemented Debug with actual display output. It's not useful for debugging some node/expr details.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Aug 2, 2024
@github-actions github-actions bot added the core Core DataFusion crate label Aug 2, 2024
@github-actions github-actions bot added sql SQL Planner optimizer Optimizer rules substrait Changes to the substrait crate labels Aug 2, 2024
@alamb alamb changed the title Logical plan debug printing Support LogicalPlan Debug differently than Display Aug 2, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you @lewiszlw -- I think this is a very nice improvement

My understanding of this change (for other reviewers) is:

  1. previously "{plan:?}" and "{plan}" (akaDebug and Display printing) printed out the display version
  2. After this change "{plan:?}" prints out a more standard rust debug style with fields, etc. and the "{plan}" remains unchangd

@alamb alamb merged commit a4d41d6 into apache:main Aug 4, 2024
@alamb
Copy link
Contributor

alamb commented Aug 4, 2024

Thanks again @lewiszlw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules sql SQL Planner substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants