HappenLee commented on code in PR #32333: URL: https://github.com/apache/doris/pull/32333#discussion_r1527940712
########## be/src/vec/functions/like.cpp: ########## @@ -99,6 +222,25 @@ Status FunctionLikeBase::constant_allpass_fn(LikeSearchState* state, const Colum return Status::OK(); } +Status FunctionLikeBase::constant_allpass_fn_scalar(LikeSearchState* state, const StringRef& val, + const StringRef& pattern, + unsigned char* result) { + *result = 1; + return Status::OK(); +} + +Status FunctionLikeBase::vector_allpass_fn(const ColumnString& vals, + const ColumnString& search_strings, + ColumnUInt8::Container& result) { + DCHECK(vals.size() == search_strings.size()); + DCHECK(vals.size() == result.size()); + auto sz = vals.size(); + for (size_t i = 0; i < sz; ++i) { Review Comment: better memset to do the work -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org