This is an automated email from the ASF dual-hosted git repository.
jianliangqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4303f57cb25 [opt](inverted index) opt for log output when matching
without an index (#34024)
4303f57cb25 is described below
commit 4303f57cb25724285348b98263d28cd32f5a7ea9
Author: zzzxl <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]