eldenmoon commented on code in PR #20037:
URL: https://github.com/apache/doris/pull/20037#discussion_r1206150427


##########
be/src/olap/rowset/beta_rowset_reader.cpp:
##########
@@ -269,6 +279,10 @@ Status BetaRowsetReader::next_block(vectorized::Block* 
block) {
         if (!s.ok()) {
             if (!s.is<END_OF_FILE>()) {
                 LOG(WARNING) << "failed to read next block: " << s.to_string();
+            } else {
+                if (_iterator->is_borrowed()) {

Review Comment:
   since _iter may be SegmentIterator when rowset only contains a single segment



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

Reply via email to