Skip to content
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

feat: handle scan request on metric engine #2793

Merged
merged 9 commits into from
Nov 24, 2023

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Handle ScanRequest on metric engine. Request to logical region will be transformed to request to physical region, and request to physical region is proxied to mito directly.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #2793 (8c928ee) into develop (4c76d4d) will decrease coverage by 0.11%.
Report is 5 commits behind head on develop.
The diff coverage is 92.91%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2793      +/-   ##
===========================================
- Coverage    84.49%   84.38%   -0.11%     
===========================================
  Files          729      732       +3     
  Lines       113510   114130     +620     
===========================================
+ Hits         95913    96313     +400     
- Misses       17597    17817     +220     

Signed-off-by: Ruihang Xia <[email protected]>
src/metric-engine/src/engine/read.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine/region_metadata.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine/region_metadata.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine/region_metadata.rs Outdated Show resolved Hide resolved
src/metric-engine/src/data_region.rs Show resolved Hide resolved
src/metric-engine/src/engine/read.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine/read.rs Show resolved Hide resolved
src/metric-engine/src/engine/read.rs Outdated Show resolved Hide resolved
src/metric-engine/src/test_util.rs Outdated Show resolved Hide resolved
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fengjiachun fengjiachun added this pull request to the merge queue Nov 24, 2023
.contains_key(&region_id);

if is_reading_physical_region {
info!(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log level is too high, debug would be better.

Merged via the queue into GreptimeTeam:develop with commit 33566ea Nov 24, 2023
12 checks passed
@waynexia waynexia deleted the query-metric-engine branch November 24, 2023 08:23
@waynexia waynexia self-assigned this Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants