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


##########
be/src/olap/rowset/segment_v2/segment.cpp:
##########
@@ -157,6 +156,19 @@ Status Segment::new_iterator(SchemaSPtr schema, const 
StorageReadOptions& read_o
         iter->reset(new SegmentIterator(this->shared_from_this(), schema));
     }
 
+    auto pruned_predicates = read_options.column_predicates;
+    auto pruned = false;
+    for (auto& it : _column_readers) {
+        if (it.second->prune_predicates_by_zone_map(pruned_predicates, 
it.first)) {
+            pruned = true;
+        }
+    }
+
+    if (pruned) {

Review Comment:
   add a config to disable this
   and the prune should only be used in query, not in compaction.



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