Skip to content

Commit

Permalink
Update incRawBytesRead metric in DirectBufferedInput
Browse files Browse the repository at this point in the history
  • Loading branch information
JkSelf committed Jan 10, 2024
1 parent 25be5d6 commit c3b8668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion velox/connectors/hive/HiveDataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HiveDataSource : public DataSource {
const std::shared_ptr<common::Filter>& filter) override;

uint64_t getCompletedBytes() override {
return ioStats_->read().sum();
return ioStats_->rawBytesRead();
}

uint64_t getCompletedRows() override {
Expand Down
1 change: 1 addition & 0 deletions velox/dwio/common/DirectBufferedInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ std::vector<cache::CachePin> DirectCoalescedLoad::loadData(bool isPrefetch) {
}
input_->read(buffers, requests_[0].region.offset, LogType::FILE);
ioStats_->read().increment(size);
ioStats_->incRawBytesRead(size);
ioStats_->incRawOverreadBytes(overread);
if (isPrefetch) {
ioStats_->prefetch().increment(size);
Expand Down

0 comments on commit c3b8668

Please sign in to comment.