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

Fix bug in SimplifyExpressions #7699

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

Dandandan
Copy link
Contributor

@Dandandan Dandandan commented Sep 29, 2023

Which issue does this PR close?

Closes #7700

Rationale for this change

Fix issue in SimplifyExpressions optimizer which fails to simplify the TableScan filter expressions.
This became visible in our testing after #7670 was merged.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the optimizer Optimizer rules label Sep 29, 2023
@Dandandan Dandandan changed the title Fix bug in simplify expressions (#214) Fix bug in SimplifyExpressions (#214) Sep 29, 2023
@Dandandan Dandandan changed the title Fix bug in SimplifyExpressions (#214) Fix bug in SimplifyExpressions Sep 29, 2023
@Dandandan Dandandan merged commit 2abacf4 into apache:main Sep 29, 2023
22 checks passed
@@ -65,10 +65,13 @@ impl SimplifyExpressions {
) -> Result<LogicalPlan> {
let schema = if !plan.inputs().is_empty() {
DFSchemaRef::new(merge_schema(plan.inputs()))
} else if let LogicalPlan::TableScan(_) = plan {
} else if let LogicalPlan::TableScan(scan) = plan {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimizer Optimizer rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in SimplifyExpressions
3 participants