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

Add some additional asserts in utils::from_plan #930

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Aug 23, 2021

Which issue does this PR close?

Re: #917

Rationale for this change

#917 was due to mishandling a newly added LogicalPlan node in utils::from_plan

What changes are included in this PR?

  1. Make it harder to introduce such bugs in the future by adding asserts

Are there any user-facing changes?

no

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Aug 23, 2021
@alamb alamb force-pushed the alamb/more_asserty branch from fbca826 to 2cd9e45 Compare August 23, 2021 20:52
@alamb alamb marked this pull request as ready for review August 23, 2021 20:52
@alamb
Copy link
Contributor Author

alamb commented Aug 25, 2021

fyi @Dandandan

@alamb alamb merged commit 4f48815 into apache:master Aug 25, 2021
@Dandandan
Copy link
Contributor

👍

@@ -206,10 +206,28 @@ pub fn from_plan(
input: Arc::new(inputs[0].clone()),
})
}
LogicalPlan::Explain { .. } => {
// Explain shoudl be handled specially in the optimizers;
Copy link
Contributor

Choose a reason for hiding this comment

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

Small typo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🦅 👁️

Fix in #945

@alamb alamb deleted the alamb/more_asserty branch August 25, 2021 15:57
@houqp houqp added the enhancement New feature or request label Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants