Skip to content
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

Implement Debug for ExecutionProps and VarProvider #5489

Merged
merged 3 commits into from
Mar 7, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Mar 6, 2023

Which issue does this PR close?

Closes #5488

Rationale for this change

See #5488

What changes are included in this PR?

  1. #[derive(Debug)] for ExecutionProps
  2. Add Debug to the VarProvider trait -- this is technically a breaking change, but I think it is an improvement in usability

Are these changes tested?

Yes, unit test

Are there any user-facing changes?

Anyone who has implemented VarProvider will also have to now ensure they implement the Debug for that struct

@alamb alamb added the api change Changes the API exposed to users of the crate label Mar 6, 2023
@github-actions github-actions bot added the physical-expr Physical Expressions label Mar 6, 2023
@github-actions github-actions bot added the core Core DataFusion crate label Mar 6, 2023
@@ -23,7 +23,7 @@ use crate::variable::VarProvider;
use arrow::datatypes::DataType;

/// System variable
#[derive(Default)]
#[derive(Default, Debug)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This shows an example of user code that must be changed

@alamb alamb changed the title Implement Debug for ExecutionProps Implement Debug for ExecutionProps and VarProvider Mar 7, 2023
@alamb alamb merged commit 8d8b765 into apache:main Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api change Changes the API exposed to users of the crate core Core DataFusion crate physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Debug impl for ExecutionProps
2 participants