eldenmoon commented on code in PR #26749: URL: https://github.com/apache/doris/pull/26749#discussion_r1393695747
########## be/src/olap/rowset/segment_v2/segment_iterator.cpp: ########## @@ -276,7 +282,12 @@ Status SegmentIterator::_init_impl(const StorageReadOptions& opts) { _file_reader = _segment->_file_reader; _opts = opts; _col_predicates.clear(); + for (auto& predicate : opts.column_predicates) { + if (!_segment->can_apply_predicate_safely(predicate->column_id(), predicate, *_schema, + _opts.io_ctx.reader_type)) { + continue; Review Comment: Add CHECK in `can_apply_predicate_safely ` to make sure `continue` in variant case -- 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