airborne12 commented on code in PR #19936:
URL: https://github.com/apache/doris/pull/19936#discussion_r1201409922


##########
be/src/olap/rowset/segment_v2/segment_iterator.cpp:
##########
@@ -973,11 +972,20 @@ Status SegmentIterator::_init_inverted_index_iterators() {
     }
     for (auto cid : _schema.column_ids()) {
         int32_t unique_id = _schema.unique_id(cid);
+        auto column_name = _schema.column(cid)->name();
         if (_inverted_index_iterators.count(unique_id) < 1) {
             RETURN_IF_ERROR(_segment->new_inverted_index_iterator(
                     _opts.tablet_schema->column(cid), 
_opts.tablet_schema->get_inverted_index(cid),
                     _opts.stats, &_inverted_index_iterators[unique_id]));
         }
+
+        if (_inverted_index_iterators.count(unique_id) > 0

Review Comment:
   How about if an user does not add index, but wants to use match?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to