-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support simplifying expressions like ~ ^(bar|foo)$
#6487
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
Conversation
|
cc @jiacai2050 |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @tanruixiang -- the code looks good to me. I have a few more test suggestions but otherwise I think this PR looks good to me ❤️
|
Thank you very much for the review. Strange error reported, I'll look into what happened tomorrow. |
|
@alamb Hi, we have resolved the testing issue. |
|
The test failures are unrelated to this PR: #6495 Hopefully we'll get that fixed today and get this PR merged as well |
|
I think this PR will pass CI if you merge up from main now (to get the fix for #6495) |
|
@alamb Thank you for the review and the reminder. The CI has passed after merging the main branches. |
|
I pull latest code, I find this PR test fail due to #6414 |
|
Because your branch is Please rebase to latest code. |
|
sorry, delete a comment by mistake. |
Don't worry, here are the comments you deleted by mistake.
|
|
Thank you @tanruixiang and @jackwener ! |
Which issue does this PR close?
Closes #6488 .
Rationale for this change
Support simplifying expressions like
~ ^(bar|foo)$, This will help the subsequent optimizer to perform related optimizations such as predicate push-down.What changes are included in this PR?
Optimization for regular expressions of this form is supported in the existing
simplify_regex_expr.Are these changes tested?
Add test case in
expr_simplifier.rsAre there any user-facing changes?