yiguolei commented on code in PR #66472:
URL: https://github.com/apache/doris/pull/66472#discussion_r3765430989
##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -1467,38 +1402,31 @@ bool SegmentIterator::_need_read_data(ColumnId cid) {
// A column can skip data reads when its predicates have already been
fully resolved.
// zonemap_always_true_pred_cols is produced only for non-key columns
because key columns
// must remain readable for short-key range seeks.
- const bool used_by_common_expr =
- cid < _is_common_expr_column.size() && _is_common_expr_column[cid];
+ const bool used_by_common_expr = _column_states[cid].is_common_expr;
Review Comment:
如果一个 where col1 > 1 and abs(col1) < 100
此时这个col1 既是 predicate 也是common expr 你这个标记怎么办?
--
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]