Skip to content

Conversation

@AnthonyZhOon
Copy link
Contributor

Which issue does this PR close?

Uses #12555 to improve the Debug impl of SessionState

Rationale for this change

Now that the Debug for SessionStateBuilder covers all fields, this change, all fields of SessionState can also be shown in debugs.

What changes are included in this PR?

  1. Enable missing debug fields for SessionState

Are these changes tested?

By CI and the compiler

Are there any user-facing changes?

A different result from debug printing SessionState where the previously missing fields are now visible.

AnthonyZhOon and others added 23 commits September 26, 2024 01:08
… informs this is unnecessary

This reverts commit f69d73c.
… keep consistent Debug field order with `SessionState`
…Builder` now that the fields all require `Debug`
…Builder` now that the fields have `Debug` available
@github-actions github-actions bot added the core Core DataFusion crate label Sep 28, 2024
impl Debug for SessionState {
/// Prefer having short fields at the top and long vector fields near the end
/// Group fields by
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we perhaps use #derive(Debug) instead?

Copy link
Contributor

@alamb alamb Sep 29, 2024

Choose a reason for hiding this comment

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

let's do it as a follow on. This PR is better than what is on main I think

@alamb alamb merged commit da70fab into apache:main Sep 29, 2024
@alamb
Copy link
Contributor

alamb commented Sep 29, 2024

Thanks again @AnthonyZhOon

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

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants