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


##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -3400,6 +3419,107 @@ Status 
SegmentIterator::_construct_compound_expr_context() {
     return Status::OK();
 }
 
+Status SegmentIterator::_apply_expr_zonemap_to_row_ranges(const 
VExprContextSPtrs& conjuncts,
+                                                          rowid_t min_rowid,
+                                                          RowRanges* 
row_ranges) {
+    DORIS_CHECK(row_ranges != nullptr);
+    if (!expr_zonemap::is_expr_zonemap_filter_enabled(_opts.runtime_state) || 
conjuncts.empty() ||
+        row_ranges->is_empty()) {
+        return Status::OK();
+    }
+    // Page zone maps are addressed by reader-schema column ordinals. When 
storage expr slots need
+    // rebinding to the reader schema, VExprContext::clone() does not 
deep-copy the expression tree
+    // yet, so rebinding may mutate shared slot refs. Keep page-level 
expr-zonemap on layouts whose
+    // scan tuple slot ordinals already match the reader schema.
+    if (!storage_expr_slots_match_reader_schema(_opts)) {

Review Comment:
   这个逻辑是没用的



-- 
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