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

expression: implement vectorized evaluation for builtinLocate3ArgsSig #12510

Merged
merged 12 commits into from
Oct 14, 2019
Prev Previous commit
Next Next commit
merge
  • Loading branch information
b41sh committed Oct 10, 2019
commit c3e2386635bd72882c5c9b1993c7f054286ff1ed
10 changes: 10 additions & 0 deletions expression/builtin_string_vec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ var vecBuiltinStringCases = map[string][]vecExprBenchCase{
ast.Substring: {},
ast.SubstringIndex: {},
ast.Locate: {
{
retEvalType: types.ETInt,
childrenTypes: []types.EvalType{types.ETString, types.ETString},
geners: []dataGenerator{&randLenStrGener{0, 10}, &randLenStrGener{0, 20}},
},
{
retEvalType: types.ETInt,
childrenTypes: []types.EvalType{types.ETString, types.ETString},
geners: []dataGenerator{&randLenStrGener{1, 2}, &randLenStrGener{0, 20}},
},
{
retEvalType: types.ETInt,
childrenTypes: []types.EvalType{types.ETString, types.ETString, types.ETInt},
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.