morningman commented on code in PR #18340:
URL: https://github.com/apache/doris/pull/18340#discussion_r1157036883


##########
be/src/vec/exec/format/parquet/vparquet_reader.cpp:
##########
@@ -617,12 +623,15 @@ Status ParquetReader::_process_page_index(const 
tparquet::RowGroup& row_group,
     Slice result(col_index_buff, page_index._column_index_size);
     RETURN_IF_ERROR(
             _file_reader->read_at(page_index._column_index_start, result, 
&bytes_read, _io_ctx));
+    _column_statistics.read_bytes += bytes_read;
     auto& schema_desc = _file_metadata->schema();
     std::vector<RowRange> skipped_row_ranges;
     uint8_t off_index_buff[page_index._offset_index_size];
     Slice res(off_index_buff, page_index._offset_index_size);
     RETURN_IF_ERROR(
             _file_reader->read_at(page_index._offset_index_start, res, 
&bytes_read, _io_ctx));
+    _column_statistics.read_bytes += bytes_read;
+    _column_statistics.read_calls += 2;

Review Comment:
   Add comment to explain number `2`



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to