csun5285 commented on code in PR #67642:
URL: https://github.com/apache/doris/pull/67642#discussion_r4023415883
##########
be/src/storage/segment/segment.cpp:
##########
@@ -143,8 +143,14 @@ Status build_segment_zonemap_context(Segment* segment,
const ReadSchema& schema,
return Status::OK();
}
-// The statistics iterator answers pushed-down aggregates from the segment
zone maps alone. An
-// invalid zone map has no min/max to answer with, so the caller has to read
the data instead.
+// Whether to force MIN/MAX onto the zone map when its bound is not a value
the data holds now: a
+// cut string bound, or one covering rows a delete predicate removed.
Statistics collection sets it.
+// MIN/MAX is the only aggregate this can force, because it is the only one
that reads the bounds.
+bool pushdown_zonemap_minmax_forced(const StorageReadOptions& read_options) {
+ return read_options.push_down_agg_type_opt == TPushAggOp::MINMAX &&
+
read_options.runtime_state->query_options().force_pushdown_zonemap_minmax;
Review Comment:
这个到 4.2 版本
--
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]