chaoyli commented on a change in pull request #653: Fix reading bugs
URL: https://github.com/apache/incubator-doris/pull/653#discussion_r259310984
 
 

 ##########
 File path: be/src/olap/rowset/alpha_rowset_reader.cpp
 ##########
 @@ -154,19 +154,18 @@ OLAPStatus 
AlphaRowsetReader::_get_next_not_filtered_row(size_t pos, RowCursor**
             if (row_filtered) {
                 _current_read_context->stats->rows_del_filtered++;
                 current_row_block->pos_inc();
+                if (!current_row_block->has_remaining()) {
 
 Review comment:
       const DeleteHandler* delete_handler = 
_current_read_context->delete_handler;
       while (!found_row) {
           if (!current_row_block->has_remaining()) {
               OLAPStatus status = _get_next_block(pos, &current_row_block);
               if (status != OLAP_SUCCESS) {
                   LOG(WARNING) << "_get_next_block failed, status:" << status;
                   return status;
               }
           }
   
           size_t pos = current_row_block->pos();
           current_row_block->get_row(pos, *row);
           found_row = 
delete_handler->is_filter_data(_alpha_rowset_meta->version().second, *(*row));
       }

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