-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly record the rawInputBytes metric in TableScan #8545
Conversation
✅ Deploy Preview for meta-velox canceled.
|
@Yuhta Can you help to review again? Thanks for your help. |
@@ -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 > overread) ? size - overread : 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to fix the calculation of size
here. size += request.loadSize
instead of size += std::min<int32_t>(loadQuantum_, region.length)
above probably. Do you think that makes sense? Can you think about a test case to cover that?
This pull request has been automatically marked as stale because it has not had recent activity. If you'd still like this PR merged, please comment on the PR, make sure you've addressed reviewer comments, and rebase on the latest main. Thank you for your contributions! |
Follow up #8536 and #8147.
This PR adds a check to set the size to 0 if the difference between the size and overread is less than 0.