Support simplifying expressions like ~ ^(bar|foo)$ #6487
Conversation
|
cc @jiacai2050 |
alamb
left a comment
There was a problem hiding this comment.
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?