mrhhsg commented on code in PR #66145:
URL: https://github.com/apache/doris/pull/66145#discussion_r3879059621


##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -209,12 +212,18 @@ class SegmentIterator::BitmapRangeIterator {
 
     explicit BitmapRangeIterator(const roaring::Roaring& bitmap) {
         roaring_init_iterator(&bitmap.roaring, &_iter);
+        if (!bitmap.isEmpty()) {

Review Comment:
   RowRange 的构建没什么开销的
   ```cpp
       RowRange(int64_t from, int64_t to) : _from(from), _to(to) {}
   ```



-- 
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]

Reply via email to