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

Minor: Use standard tree walk in Projection Pushdown #8787

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 8, 2024

Which issue does this PR close?

Follow on to #8774 / #8735

Rationale for this change

The core issue in #8735 was that one Expr type was forgotten. @haohuaijin restored the extra Expr type ❤️

However, I think there is still some danger than a new Expr type would be added and forgotten to be added to this area. Thus I propose using the standard TreeVisitor to do the recursion

What changes are included in this PR?

Use inspect_expr_pre instead of manual recursion

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

No

@alamb alamb changed the title Alamb/simplify expr analysis Minor: Use standard tree walk in Projection Pushdown Jan 8, 2024
@github-actions github-actions bot added the optimizer Optimizer rules label Jan 8, 2024
Copy link
Contributor

@haohuaijin haohuaijin left a comment

Choose a reason for hiding this comment

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

Thank you @alamb for this great simplify 👍.

@Dandandan Dandandan merged commit f5ca078 into apache:main Jan 9, 2024
22 checks passed
@alamb alamb deleted the alamb/simplify_expr_analysis branch January 9, 2024 18:21
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.

3 participants