Skip to content

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
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