yiguolei commented on code in PR #52146:
URL: https://github.com/apache/doris/pull/52146#discussion_r2162780595
##########
be/src/vec/functions/like.cpp:
##########
@@ -660,19 +660,58 @@ VPatternSearchStateSPtr
FunctionLikeBase::pattern_type_recognition(const ColumnS
}
}
+std::string replace_pattern_by_escape(const StringRef& pattern, char
escape_char) {
+ std::string result;
+ result.reserve(pattern.size);
+ for (size_t i = 0; i < pattern.size; ++i) {
Review Comment:
这个代码得加单测
--
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]