Skip to content

refactor: remove grpc client constructor with default catalog/schema#1060

Merged
evenyag merged 2 commits intoGreptimeTeam:developfrom
sunng87:refactor/grpc-client
Feb 24, 2023
Merged

refactor: remove grpc client constructor with default catalog/schema#1060
evenyag merged 2 commits intoGreptimeTeam:developfrom
sunng87:refactor/grpc-client

Conversation

@sunng87
Copy link
Copy Markdown
Member

@sunng87 sunng87 commented Feb 22, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This patch remove constructor from Database that uses default catalog and schema, to avoid using it in serious cases.

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)

@sunng87 sunng87 force-pushed the refactor/grpc-client branch from c0446b5 to c450194 Compare February 22, 2023 09:35
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 22, 2023

Codecov Report

Merging #1060 (c450194) into develop (2df8143) will decrease coverage by 0.13%.
The diff coverage is 40.00%.

@@             Coverage Diff             @@
##           develop    #1060      +/-   ##
===========================================
- Coverage    85.70%   85.57%   -0.13%     
===========================================
  Files          450      450              
  Lines        65736    65736              
===========================================
- Hits         56338    56255      -83     
- Misses        9398     9481      +83     
Flag Coverage Δ
rust 85.57% <40.00%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
benchmarks/src/bin/nyc-taxi.rs 0.30% <0.00%> (ø)
src/client/src/database.rs 95.38% <0.00%> (-1.54%) ⬇️
src/client/src/lib.rs 100.00% <ø> (ø)
src/frontend/src/instance/distributed.rs 87.07% <100.00%> (ø)
src/frontend/src/table.rs 94.18% <100.00%> (ø)
src/object-store/src/test_util.rs 0.00% <0.00%> (-100.00%) ⬇️
src/datanode/src/instance.rs 43.77% <0.00%> (-14.34%) ⬇️
src/servers/src/shutdown.rs 80.95% <0.00%> (-9.53%) ⬇️
tests-integration/src/test_util.rs 79.16% <0.00%> (-9.47%) ⬇️
src/servers/src/auth/user_provider.rs 81.81% <0.00%> (-2.28%) ⬇️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Copy Markdown
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.

LGTM

@evenyag evenyag merged commit 81eab74 into GreptimeTeam:develop Feb 24, 2023
@sunng87 sunng87 deleted the refactor/grpc-client branch February 24, 2023 03:09
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…reptimeTeam#1060)

* refactor: remove grpc client with default catalog/schema

* refactor: re-export consts in client module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants