chaoyli commented on a change in pull request #729: Fix memory problem of reader
URL: https://github.com/apache/incubator-doris/pull/729#discussion_r264503860
##########
File path: be/src/olap/rowset/alpha_rowset_reader.cpp
##########
@@ -70,11 +91,11 @@ OLAPStatus AlphaRowsetReader::next(RowCursor** row) {
OLAPStatus AlphaRowsetReader::next_block(std::shared_ptr<RowBlock> block) {
size_t num_rows_in_block = 0;
- while (has_next() && block->pos() < _num_rows_per_row_block) {
+ while (block->pos() < _num_rows_per_row_block) {
RowCursor* row_cursor = nullptr;
OLAPStatus status = next(&row_cursor);
Review comment:
OLAPStatus status = next(&_row_cursor)
if (status == OLAP_ERR_DATA_EOF && block->pos() > 0) {
break;
}
return status;
----------------------------------------------------------------
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.
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]