This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 15b8610ed13 branch-4.1: [improvement](pk lookup) Avoid copying segment
key bounds #67618 (#67698)
15b8610ed13 is described below
commit 15b8610ed13d27780fc974be89a0538d0154d246
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Sep 9 22:42:30 2026 +0800
branch-4.1: [improvement](pk lookup) Avoid copying segment key bounds
#67618 (#67698)
Cherry-picked from #67618
Co-authored-by: foxtail463 <[email protected]>
Co-authored-by: yangtao555 <[email protected]>
---
be/src/storage/tablet/base_tablet.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/be/src/storage/tablet/base_tablet.cpp
b/be/src/storage/tablet/base_tablet.cpp
index e0a065dfa93..af494004bbc 100644
--- a/be/src/storage/tablet/base_tablet.cpp
+++ b/be/src/storage/tablet/base_tablet.cpp
@@ -572,8 +572,7 @@ Status BaseTablet::lookup_row_key(const Slice& encoded_key,
TabletSchema* latest
delete_bitmap == nullptr ? _tablet_meta->delete_bitmap_ptr() :
delete_bitmap;
for (size_t i = 0; i < specified_rowsets.size(); i++) {
const auto& rs = specified_rowsets[i];
- std::vector<KeyBoundsPB> segments_key_bounds;
- rs->rowset_meta()->get_segments_key_bounds(&segments_key_bounds);
+ const auto& segments_key_bounds =
rs->rowset_meta()->get_segments_key_bounds();
int num_segments = cast_set<int>(rs->num_segments());
// MOW lookup requires per-segment bounds. Aggregation must be disabled
// for MOW writers, but enforce at runtime too — indexing
segments_key_bounds[j]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]