-
Notifications
You must be signed in to change notification settings - Fork 837
feat: improve scan IO profile metrics #18975
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
Conversation
Docker Image for PR
|
2c80cb0 to
f69fd9e
Compare
… output - Add bytes scanned from local cache to test expectations - Make scan IO metrics (remote/local/memory) always display even when zero to ensure consistent output format for sqllogic tests
This ensures: - Fuse table scans show all three scan IO metrics together (remote/local/memory) - System tables (like numbers) don't show these metrics since they don't use Fuse storage
Use enum comparison instead of string comparison for more reliable matching
57dadaf to
22ab02c
Compare
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
dad93da to
a509e43
Compare
|
@codex review |
The fix was applied to the correct file: physical_format.rs in databend-query. The previous fix in sql/executor/format.rs was ineffective because that file is not compiled (not declared in mod.rs). When any of the three scan IO metrics (remote/local cache/memory cache) is non-zero, all three will be displayed. This ensures consistent output in EXPLAIN ANALYZE for Fuse table scans.
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Improve scan IO profile metrics by adding dedicated counters for different data sources:
ScanBytesFromRemoteread from remoteScanBytesFromLocalDiskread from local diskScanBytesFromDataCacheread from data cacheScanBytesFromMemoryread from memory cacheCache Architecture
Example Output
Tests
Type of change
This change is