kangpinghuang commented on a change in pull request #2015: add profile for
segment v2
URL: https://github.com/apache/incubator-doris/pull/2015#discussion_r336826872
##########
File path: be/src/olap/rowset/segment_v2/column_reader.cpp
##########
@@ -227,7 +244,8 @@ void ColumnReader::_calculate_row_ranges(const
std::vector<uint32_t>& page_index
Status ColumnReader::_init_ordinal_index() {
PagePointer pp = _meta.ordinal_index_page();
PageHandle ph;
- RETURN_IF_ERROR(read_page(pp, &ph));
+ OlapReaderStatistics stats;
Review comment:
ColumnReader is shared between ColumnIterator. OlapReaderStatistics is for
one-time read and should be updated by ColumnIterator. So here there is no need
to pass the OlapReaderStatistics from reader, just pass the tmp
OlapReaderStatistics to api to obey the api requirement.
----------------------------------------------------------------
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]