chaoyli commented on a change in pull request #729: Fix memory problem of reader
URL: https://github.com/apache/incubator-doris/pull/729#discussion_r264486897
##########
File path: be/src/olap/rowset/alpha_rowset_reader.cpp
##########
@@ -48,14 +55,67 @@ OLAPStatus AlphaRowsetReader::init(RowsetReaderContext*
read_context) {
}
bool AlphaRowsetReader::has_next() {
- for (auto& row_block : _row_blocks) {
+ if (_is_first_read) {
Review comment:
May be in init() will be ok?
----------------------------------------------------------------
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]