-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
colexec: add optimized support of "contains" LIKE match #51584
Comments
Hi @yuzefovich I'd like to work this issue if no one is working on it. |
Should I add |
Hi @clucle, thanks for the interest! I'll assign the issue to you. In terms of benchmarks, you should adjust |
cockroach/pkg/sql/colexec/like_ops_test.go Lines 82 to 92 in 276dd82
In my opinion, it seems that Should I add a test case? |
I don't know how to add a reviewer( #51598 ) because this is my first contribution to this project. Help me plz 😄 |
Oh yeah, I didn't see it. No need for extra test case then. |
This issue has been addressed by #51636. |
We currently have optimized support of LIKE matching for "prefix" match (
test%
) and "suffix" match (%test
). We could also easily add support for "contains" match (%test%
) usingbytes.Contains
function.This will require the following:
execgen/like_ops_gen.go
to introduce the new "overload" for LIKE operator to be generated (you'll need to runmake execgen
to regenerate the code)colexec/like_ops.go
to support new "contains"likeOpType
GetLikeOperator
andGetLikeProjectionOperator
methods accordinglylogic_test/vectorize
.The text was updated successfully, but these errors were encountered: