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

feat: support simplifying BinaryExpr with arbitrary guarantees in GuaranteeRewriter #8256

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

wjones127
Copy link
Member

Which issue does this PR close?

Closes #8255.

Rationale for this change

Mostly, I want to be able to simplify expressions involving nested column references.

What changes are included in this PR?

Are these changes tested?

Added one new test case for this.

Are there any user-facing changes?

@github-actions github-actions bot added the optimizer Optimizer rules label Nov 17, 2023
@wjones127 wjones127 marked this pull request as ready for review November 17, 2023 21:01
@wjones127 wjones127 requested a review from alamb November 17, 2023 21:01
Copy link
Contributor

@alamb alamb 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 @wjones127

This simplification code is very nice, BTW. As we continue to work on improving statistics (like in #8078) seeing this code makes me even more strongly believe that using Intervals is the right approach (as it will fit in with this logic) vice nicely. cc @ozankabak

@ozankabak
Copy link
Contributor

Agreed. BTW ee hope to send the improved interval library upstream by Monday

@wjones127 wjones127 merged commit 393e48f into apache:main Nov 18, 2023
22 checks passed
@wjones127 wjones127 deleted the 8255-simplify-nested-binaryexpr branch November 18, 2023 16:30
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.

Support simplifying BinaryExpr with arbitrary guarantees in GuaranteeRewriter
3 participants