yiguolei commented on code in PR #67642:
URL: https://github.com/apache/doris/pull/67642#discussion_r3999622869
##########
be/src/storage/segment/segment.cpp:
##########
@@ -503,8 +538,13 @@ Status Segment::new_iterator(ReadSchemaSPtr schema, const
StorageReadOptions& re
RETURN_IF_ERROR(load_index(read_options.stats, &read_options.io_ctx));
}
+ // A delete predicate leaves the zone map covering rows that are gone, so
its min/max may be a
+ // value the table no longer holds. Statistics collection takes that
approximation; every other
+ // query has to read the rows.
+ const bool delete_free =
+
read_options.delete_condition_predicates->num_of_column_predicate() == 0;
bool use_statistics_iterator =
-
read_options.delete_condition_predicates->num_of_column_predicate() == 0 &&
+ (delete_free || accepts_inexact_min_max(read_options)) &&
Review Comment:
accepts_inexact_min_max 这个里面不是只控制了string 吗?
--
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]