ishaaaan17 opened a new pull request, #69580:
URL: https://github.com/apache/doris/pull/69580
### What problem does this PR solve?
Related PR: #59866
Problem Summary:
PR #59866 added `LikeFastPath` to `like_fn_scalar`, so common LIKE patterns
do not need regex compilation. But `FunctionLike::like_fn` (the vector batch
function) was left as it was, and it still goes directly to
`convert_like_pattern` and `regexp_fn`.
this PR makes `FunctionLike::like_fn` use the existing vector fast-path
methods (`constant_allpass_fn`, `constant_equals_fn`,
`constant_starts_with_fn`, `constant_ends_with_fn`, `constant_substring_fn`),
so regex compilation and matching are skipped for non-literal and
runtime-constant patterns.
### Release note
None
### Check List (For Author)
- Test
- [x] Unit Test
- Behavior changed:
- [x] No.
- Does this need documentation?
- [x] No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]