HappenLee commented on code in PR #17953: URL: https://github.com/apache/doris/pull/17953#discussion_r1141712701
########## be/src/vec/functions/like.cpp: ########## @@ -372,10 +372,12 @@ Status FunctionLikeBase::execute_impl(FunctionContext* context, Block& block, const auto pattern_col = block.get_by_position(arguments[1]).column; if (const auto* str_patterns = check_and_get_column<ColumnString>(pattern_col.get())) { - DCHECK_EQ(str_patterns->size(), 1); - const auto& pattern_val = str_patterns->get_data_at(0); - RETURN_IF_ERROR(vector_const(*values, &pattern_val, vec_res, state->function, - &state->search_state)); + for (int i = 0; i < input_rows_count; i++) { Review Comment: I test mysql. mysql support the query non-const way -- 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