yiguolei commented on code in PR #51143: URL: https://github.com/apache/doris/pull/51143#discussion_r2106413496
########## be/src/olap/rowset/segment_v2/segment.cpp: ########## @@ -699,6 +699,84 @@ Status Segment::_create_column_readers(const SegmentFooterPB& footer) { return Status::OK(); } +std::map<uint32_t, std::unique_ptr<Segment::ParsedZoneMap>> Segment::get_zone_maps() { + std::map<uint32_t, std::unique_ptr<ParsedZoneMap>> zone_maps; + const auto& schema_columns = _tablet_schema->columns(); + const auto pb_columns_count = _footer_pb->columns().size(); + if (pb_columns_count <= 0) { + return {}; + } + + const auto columns_count = + std::min(schema_columns.size(), static_cast<size_t>(pb_columns_count)); + + if (columns_count >= 100) { + return {}; + } + + for (uint32_t ordinal = 0; ordinal != columns_count; ++ordinal) { Review Comment: size_t ordinal ? -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org