zzzxl1993 commented on code in PR #48371: URL: https://github.com/apache/doris/pull/48371#discussion_r1980626324
########## be/src/vec/functions/function_multi_match.cpp: ########## @@ -69,25 +70,32 @@ Status FunctionMultiMatch::evaluate_inverted_index( "parameter query type incorrect for function multi_match: query_type = {}", query_type); } + // query auto query_str = arguments[1].column->get_data_at(0); auto param_type = arguments[1].type->get_type_as_type_descriptor().type; if (!is_string_type(param_type)) { return Status::Error<ErrorCode::INVERTED_INDEX_INVALID_PARAMETERS>( "arguments for multi_match must be string"); } + // search - for (int i = 0; i < data_type_with_names.size(); i++) { + for (size_t i = 0; i < data_type_with_names.size(); i++) { auto column_name = data_type_with_names[i].first; auto* iter = iterators[i]; + if (iter == nullptr) { + return Status::Error<ErrorCode::INVERTED_INDEX_CLUCENE_ERROR>( + "inverted index iterator is null"); Review Comment: done -- 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