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

refactor: merge catalog provider & schema provider into catalog manager #1803

Merged
merged 21 commits into from
Jun 26, 2023

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Remove CatalogProvider and SchemaProvider. Move all the necessary methods into CatalogManager.

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]>
@waynexia waynexia marked this pull request as ready for review June 25, 2023 04:50
@waynexia
Copy link
Member Author

All UT pass now. I'm going to resolve conflict and check other tests later. This is generally ready for review

@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Merging #1803 (b6032e5) into develop (fd412b7) will decrease coverage by 0.17%.
The diff coverage is 85.40%.

@@             Coverage Diff             @@
##           develop    #1803      +/-   ##
===========================================
- Coverage    86.45%   86.29%   -0.17%     
===========================================
  Files          585      584       -1     
  Lines        95432    95048     -384     
===========================================
- Hits         82509    82019     -490     
- Misses       12923    13029     +106     

@waynexia waynexia self-assigned this Jun 25, 2023
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

Since this PR has passed all test cases, I choose to believe @waynexia

@waynexia waynexia enabled auto-merge (squash) June 25, 2023 09:25
src/catalog/src/local/manager.rs Show resolved Hide resolved
src/catalog/src/local/memory.rs Outdated Show resolved Hide resolved
src/catalog/src/local/memory.rs Show resolved Hide resolved
src/catalog/src/local/memory.rs Outdated Show resolved Hide resolved
src/frontend/src/catalog.rs Show resolved Hide resolved
@waynexia waynexia disabled auto-merge June 25, 2023 11:01
@waynexia waynexia enabled auto-merge (squash) June 25, 2023 11:01
@waynexia waynexia requested a review from v0y4g3r June 26, 2023 07:04
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.

a small step for catalog, a giant leap for greptimedb

@waynexia waynexia merged commit a95f876 into GreptimeTeam:develop Jun 26, 2023
@waynexia waynexia deleted the the-manager branch June 26, 2023 07:10
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…er (GreptimeTeam#1803)

* move  to expr_factory

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

* move configs into service_config

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

* move GrpcQueryHandler into distributed.rs

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

* fix compile and test in catalog sub-crate

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

* clean up

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

* fix table-procedure compile and test

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

* fix query compile and tests

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

* fix datanode compile and tests

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

* fix catalog/query/script/servers compile

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

* fix frontend compile

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

* fix nextest except information_schema

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

* support information_schema

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

* fix sqlness test

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

* fix merge errors

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

* remove other structs

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

* clean up

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

* fix format

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

* change deregister_table's return type to empty tuple

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

---------

Signed-off-by: Ruihang Xia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants