HappenLee commented on code in PR #17738:
URL: https://github.com/apache/doris/pull/17738#discussion_r1137293698
##########
be/src/olap/rowset/beta_rowset_reader.cpp:
##########
@@ -174,7 +179,15 @@ Status
BetaRowsetReader::get_segment_iterators(RowsetReaderContext* read_context
should_use_cache));
// create iterator for each segment
- for (auto& seg_ptr : _segment_cache_handle.get_segments()) {
+ auto& segments = _segment_cache_handle.get_segments();
+ auto [seg_start, seg_end] = segment_offset;
+ if (seg_start == seg_end) {
Review Comment:
No. if spilit, unless rowset segment is empty. the segment_offset must have
one segment by split
--
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]