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: write logical region to metric engine #2759

Merged
merged 6 commits into from
Nov 17, 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 region put request in metric engine. Only put request to logical region is allowed for now.

This PR also changes the internal column __metric to __table_id. Instead of using metric name (or table name), table id is more suitable at this region engine layer.

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]>
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

Merging #2759 (65eaf46) into develop (3329da5) will decrease coverage by 0.37%.
Report is 9 commits behind head on develop.
The diff coverage is 94.04%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2759      +/-   ##
===========================================
- Coverage    85.42%   85.05%   -0.37%     
===========================================
  Files          769      774       +5     
  Lines       125115   126269    +1154     
===========================================
+ Hits        106881   107401     +520     
- Misses       18234    18868     +634     

src/metric-engine/src/engine.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine.rs Show resolved Hide resolved
Signed-off-by: Ruihang Xia <[email protected]>
src/metric-engine/src/engine.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine.rs Outdated Show resolved Hide resolved
src/metric-engine/src/engine.rs Outdated Show resolved Hide resolved
Signed-off-by: Ruihang Xia <[email protected]>
@waynexia waynexia enabled auto-merge November 17, 2023 06:23
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

@waynexia waynexia added this pull request to the merge queue Nov 17, 2023
Merged via the queue into GreptimeTeam:develop with commit ac4b6cd Nov 17, 2023
12 checks passed
@waynexia waynexia deleted the write-logical branch November 17, 2023 07:55
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