[optimize](inverted index) use InvertedIndexReaderType::FULLTEXT instead of InvertedIndexParserType to check predicate whether handle by fulltext or not (#16191)

This commit is contained in:
YueW
2023-01-29 20:45:51 +08:00
committed by GitHub
parent 1db7882bb5
commit a38f36365b

View File

@ -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;
}