From a38f36365bea1dc9907fa694c42e27d96e5800ae Mon Sep 17 00:00:00 2001 From: YueW <45946325+Tanya-W@users.noreply.github.com> Date: Sun, 29 Jan 2023 20:45:51 +0800 Subject: [PATCH] [optimize](inverted index) use InvertedIndexReaderType::FULLTEXT instead of InvertedIndexParserType to check predicate whether handle by fulltext or not (#16191) --- be/src/olap/rowset/segment_v2/segment_iterator.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp b/be/src/olap/rowset/segment_v2/segment_iterator.cpp index cdc6baf578..3ef6b26bd5 100644 --- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp +++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp @@ -627,12 +627,9 @@ bool SegmentIterator::_is_handle_predicate_by_fulltext(ColumnPredicate* predicat auto column_id = predicate->column_id(); int32_t unique_id = _schema.unique_id(column_id); bool handle_by_fulltext = - (_inverted_index_iterators[unique_id] != nullptr) && - (is_string_type(_schema.column(column_id)->type())) && - ((_inverted_index_iterators[unique_id]->get_inverted_index_analyser_type() == - InvertedIndexParserType::PARSER_ENGLISH) || - (_inverted_index_iterators[unique_id]->get_inverted_index_analyser_type() == - InvertedIndexParserType::PARSER_STANDARD)); + _inverted_index_iterators[unique_id] != nullptr && + _inverted_index_iterators[unique_id]->get_inverted_index_reader_type() == + InvertedIndexReaderType::FULLTEXT; return handle_by_fulltext; }