yiguolei commented on code in PR #66472:
URL: https://github.com/apache/doris/pull/66472#discussion_r3765636868


##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -2949,38 +2727,33 @@ Status SegmentIterator::_next_batch_internal(Block* 
block) {
                                       _selected_size);
             if (_selected_size > 0) {
                 // step 3.1: output short circuit and predicate column
-                // when lazy materialization enables, _predicate_column_ids = 
distinct(_short_cir_pred_column_ids + _vec_pred_column_ids)
-                // see _vec_init_lazy_materialization
-                // todo(wb) need to tell input columnids from output columnids
-                RETURN_IF_ERROR(_output_column_by_sel_idx(block, 
_predicate_column_ids,
+                RETURN_IF_ERROR(_output_column_by_sel_idx(block, 
_predicate_ordinals,
                                                           
_sel_rowid_idx.data(), _selected_size));
 
                 // step 3.2: read remaining expr column and evaluate it.
                 if (_is_need_expr_eval) {
                     // The predicate column contains the remaining expr 
column, no need second read.
-                    if (_common_expr_column_ids.size() > 0) {
+                    if (!_common_expr_ordinals.empty()) {
                         SCOPED_RAW_TIMER(&_opts.stats->non_predicate_read_ns);
                         RETURN_IF_ERROR(_read_columns_by_rowids(

Review Comment:
   如果一列,既是 predicate ordinal,又是 expr ordinal 怎么办?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to