yiguolei commented on code in PR #62544:
URL: https://github.com/apache/doris/pull/62544#discussion_r3174033540
##########
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>()) {
- _segment_zone_map.min_value = _page_zone_map.min_value;
- }
- if (!_segment_zone_map.has_not_null ||
- _segment_zone_map.max_value.get<Type>() <
_page_zone_map.max_value.get<Type>()) {
- _segment_zone_map.max_value = _page_zone_map.max_value;
Review Comment:
我感觉max 的值可能也不对
比如:原来segment zonemap的max = -10; 但是page zonemap的max 默认是0,假如page的has_not_null
== false,此时也会进来修改,此时就会把max 改成0,也是不对的。
--
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]