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(mito): create region in mito2 engine #1999

Merged
merged 12 commits into from
Jul 21, 2023

Conversation

evenyag
Copy link
Contributor

@evenyag evenyag commented Jul 19, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This PR implements create_region() for the mito2 engine.

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)

@evenyag evenyag force-pushed the feat/create-mito2-region branch from ea3db4e to a438252 Compare July 19, 2023 13:00
@evenyag evenyag marked this pull request as ready for review July 19, 2023 13:15
@evenyag evenyag requested review from v0y4g3r and waynexia July 19, 2023 13:16
src/mito2/src/config.rs Outdated Show resolved Hide resolved
src/mito2/src/config.rs Show resolved Hide resolved
src/mito2/src/engine.rs Show resolved Hide resolved
src/mito2/src/engine/tests.rs Outdated Show resolved Hide resolved
src/mito2/src/engine/tests.rs Show resolved Hide resolved
src/mito2/src/memtable.rs Show resolved Hide resolved
src/mito2/src/region.rs Outdated Show resolved Hide resolved
src/mito2/src/region.rs Show resolved Hide resolved
src/mito2/src/region.rs Show resolved Hide resolved
src/mito2/src/worker/handle_create.rs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #1999 (c973b4f) into develop (172febb) will decrease coverage by 0.15%.
The diff coverage is 90.93%.

@@             Coverage Diff             @@
##           develop    #1999      +/-   ##
===========================================
- Coverage    85.71%   85.56%   -0.15%     
===========================================
  Files          647      650       +3     
  Lines       102866   103095     +229     
===========================================
+ Hits         88167    88214      +47     
- Misses       14699    14881     +182     

@evenyag evenyag requested a review from waynexia July 20, 2023 07:37
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

almost lgtm

@evenyag evenyag self-assigned this Jul 20, 2023
Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

LGTM

@v0y4g3r v0y4g3r added this pull request to the merge queue Jul 21, 2023
Merged via the queue into GreptimeTeam:develop with commit 792d8df Jul 21, 2023
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* chore: check table existence

* refactor: rename LevelMetaVec

* feat: create request to metadata

* refactor: Share MitoConfig between workers

* feat: impl handle_create_request

* refactor: move tests mod

* feat: validate time index nullable

* feat: test create region

* feat: test create if not exists

* feat: remove option

* style: fix clippy

* chore: address CR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants