This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 082216496eddd81f32ee7a663874e2ef46243488
Author: zzzxl <33418555+zzzxl1...@users.noreply.github.com>
AuthorDate: Wed May 8 11:34:35 2024 +0800

    [opt](inverted index) opt for log output when matching without an index 
(#34024)
    
    Generates a large volume of log output when scanning large amounts of data
---
 be/src/vec/functions/match.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/be/src/vec/functions/match.cpp b/be/src/vec/functions/match.cpp
index eab790678ea..bd77cafb1cd 100644
--- a/be/src/vec/functions/match.cpp
+++ b/be/src/vec/functions/match.cpp
@@ -173,7 +173,7 @@ Status FunctionMatchAny::execute_match(const std::string& 
column_name,
             query_tokens, reader.get(), inverted_index_ctx->analyzer, 
column_name,
             doris::segment_v2::InvertedIndexQueryType::MATCH_ANY_QUERY);
     if (query_tokens.empty()) {
-        LOG(WARNING) << fmt::format(
+        VLOG_DEBUG << fmt::format(
                 "token parser result is empty for query, "
                 "please check your query: '{}' and index parser: '{}'",
                 match_query_str, 
inverted_index_parser_type_to_string(parser_type));
@@ -223,7 +223,7 @@ Status FunctionMatchAll::execute_match(const std::string& 
column_name,
             query_tokens, reader.get(), inverted_index_ctx->analyzer, 
column_name,
             doris::segment_v2::InvertedIndexQueryType::MATCH_ALL_QUERY);
     if (query_tokens.empty()) {
-        LOG(WARNING) << fmt::format(
+        VLOG_DEBUG << fmt::format(
                 "token parser result is empty for query, "
                 "please check your query: '{}' and index parser: '{}'",
                 match_query_str, 
inverted_index_parser_type_to_string(parser_type));
@@ -340,6 +340,8 @@ Status FunctionMatchPhrasePrefix::execute_match(
     if (inverted_index_ctx) {
         parser_type = inverted_index_ctx->parser_type;
     }
+    VLOG_DEBUG << "begin to run FunctionMatchPhrasePrefix::execute_match, 
parser_type: "
+               << inverted_index_parser_type_to_string(parser_type);
 
     auto reader = 
doris::segment_v2::InvertedIndexReader::create_reader(inverted_index_ctx,
                                                                         
match_query_str);
@@ -349,7 +351,7 @@ Status FunctionMatchPhrasePrefix::execute_match(
             doris::segment_v2::InvertedIndexQueryType::MATCH_PHRASE_QUERY);
 
     if (query_tokens.empty()) {
-        LOG(WARNING) << fmt::format(
+        VLOG_DEBUG << fmt::format(
                 "token parser result is empty for query, "
                 "please check your query: '{}' and index parser: '{}'",
                 match_query_str, 
inverted_index_parser_type_to_string(parser_type));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to