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