csun5285 commented on code in PR #62544:
URL: https://github.com/apache/doris/pull/62544#discussion_r3158964431
##########
be/src/storage/index/zone_map/zone_map_index.h:
##########
@@ -148,10 +149,20 @@ class TypedZoneMapIndexWriter final : public
ZoneMapIndexWriter {
void _update_page_zonemap(const ValType& min_value, const ValType&
max_value);
+ // Materialize the running CppType min/max into
_page_zone_map.{min,max}_value.
+ // Called at flush() time, so the per-row hot path never constructs a
Field.
+ void _materialize_page_minmax();
+
DataTypePtr _data_type;
// memory will be managed by Arena
ZoneMap _page_zone_map;
ZoneMap _segment_zone_map;
+ // Running min/max for the current page kept as raw ValType (avoids per-row
+ // Field temporaries). For string types, the bytes are copied into _arena
so
+ // the StringRef stays valid across add_values() calls.
+ ValType _page_min {};
Review Comment:
The size only accounts for the serialized ZoneMapPB; let's keep the previous
semantics for now.
--
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]