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

Rewrite pattern1|pattern2|pattern3 to multiple contains in rlike #10976

Closed
Tracked by #10741
thirtiseven opened this issue Jun 4, 2024 · 0 comments · Fixed by #10977
Closed
Tracked by #10741

Rewrite pattern1|pattern2|pattern3 to multiple contains in rlike #10976

thirtiseven opened this issue Jun 4, 2024 · 0 comments · Fixed by #10977
Assignees
Labels
performance A performance related task/issue

Comments

@thirtiseven
Copy link
Collaborator

thirtiseven commented Jun 4, 2024

In rlike, multiple literal choice pattern like (pattern1|pattern2|pattern3) can be rewritten to multiple contains then or their results:

RLIKE(input, "(pattern1|pattern2|pattern3)") 
=>
Contains(pattern1) OR Contains(pattern2) OR Contains(pattern3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance A performance related task/issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants