chaoyli commented on a change in pull request #647: Fix bugs of restart
URL: https://github.com/apache/incubator-doris/pull/647#discussion_r258455547
 
 

 ##########
 File path: be/src/olap/rowset/alpha_rowset_reader.cpp
 ##########
 @@ -77,7 +77,13 @@ OLAPStatus AlphaRowsetReader::next_block(RowBlock** block) {
         RowCursor* row_cursor = nullptr;
         OLAPStatus status = next(&row_cursor);
         if (status == OLAP_ERR_DATA_EOF) {
-            return OLAP_ERR_DATA_EOF;
+            if ((*block)->has_remaining()) {
+                (*block)->set_pos(0);
+                (*block)->set_limit((*block)->pos());
 
 Review comment:
   (*block)->set_limit(num_rows_in_block)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to