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 11f1b129c0ebc7909dc615dcdabf028d98aa701a Author: zzzxl <[email protected]> AuthorDate: Mon Jan 29 14:12:43 2024 +0800 [optimize](invert index) avoid redundant checks for exist. (#30191) --- be/src/olap/rowset/segment_v2/inverted_index_reader.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/be/src/olap/rowset/segment_v2/inverted_index_reader.cpp b/be/src/olap/rowset/segment_v2/inverted_index_reader.cpp index 172679f1fa6..34bb42eac67 100644 --- a/be/src/olap/rowset/segment_v2/inverted_index_reader.cpp +++ b/be/src/olap/rowset/segment_v2/inverted_index_reader.cpp @@ -285,12 +285,6 @@ Status FullTextIndexReader::query(OlapReaderStatistics* stats, RuntimeState* run } } - // check index file existence - if (!indexExists(index_file_path)) { - return Status::Error<ErrorCode::INVERTED_INDEX_FILE_NOT_FOUND>( - "inverted index path: {} not exist.", index_file_path.string()); - } - std::unique_ptr<lucene::search::Query> query; std::wstring field_ws = std::wstring(column_name.begin(), column_name.end()); @@ -575,12 +569,6 @@ Status StringTypeInvertedIndexReader::query(OlapReaderStatistics* stats, stats->inverted_index_query_cache_miss++; } - // check index file existence - if (!indexExists(index_file_path)) { - return Status::Error<ErrorCode::INVERTED_INDEX_FILE_NOT_FOUND>( - "inverted index path: {} not exist.", index_file_path.string()); - } - switch (query_type) { case InvertedIndexQueryType::MATCH_ANY_QUERY: case InvertedIndexQueryType::MATCH_ALL_QUERY: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
