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


##########
be/src/storage/index/zone_map/zone_map_index.cpp:
##########
@@ -195,14 +225,20 @@ void 
TypedZoneMapIndexWriter<Type>::invalid_page_zone_map() {
 
 template <PrimitiveType Type>
 Status TypedZoneMapIndexWriter<Type>::flush() {
+    // Materialize the running CppType min/max into the Field-typed page zone 
map
+    // before merging into the segment zone map / serializing to proto.
+    _materialize_page_minmax();
+
     // Update segment zone map.
-    if (!_segment_zone_map.has_not_null ||
-        _segment_zone_map.min_value.get<Type>() > 
_page_zone_map.min_value.get<Type>()) {

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