Skip to content

Fix bug in SimplifyExpressions - #7699

Merged
Dandandan merged 2 commits into
apache:mainfrom
Dandandan:fix-simplify-expressions
Sep 29, 2023
Merged

Fix bug in SimplifyExpressions#7699
Dandandan merged 2 commits into
apache:mainfrom
Dandandan:fix-simplify-expressions

Conversation

@Dandandan

@DandandanDandandan commented Sep 29, 2023

Copy link
Copy Markdown
Contributor

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-actionsgithub-actionsBot added the optimizer Optimizer rules label Sep 29, 2023
@DandandanDandandan changed the title Fix bug in simplify expressions (#214)Fix bug in SimplifyExpressions (#214)Sep 29, 2023
@DandandanDandandan changed the title Fix bug in SimplifyExpressions (#214)Fix bug in SimplifyExpressionsSep 29, 2023
@Dandandan
Dandandan merged commit 2abacf4 into apache:mainSep 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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice

Ted-Jiang pushed a commit to Ted-Jiang/arrow-datafusion that referenced this pull request Oct 7, 2023
Co-authored-by: Dan Harris <1327726+thinkharderdev@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimizerOptimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in SimplifyExpressions

3 participants

@Dandandan@alamb@thinkharderdev