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

remove conf from RpcService by using session_mgr's conf #1305

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

dantengsky
Copy link
Member

I hereby agree to the terms of the CLA available at: https://datafuse.rs/policies/cla/

Summary

Summary about this PR

Changelog

  • Bug Fix

Related Issues

Fixes #1304

Test Plan

Unit Tests

Stateless Tests

@databend-bot databend-bot added the pr-bugfix this PR patches a bug in codebase label Aug 5, 2021
@databend-bot
Copy link
Member

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@@ -60,6 +60,10 @@ impl SessionManager {
}))
}

pub fn get_conf(&self) -> &Config {
Copy link
Member

Choose a reason for hiding this comment

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

If we want to return ref of Config, maybe get_conf -> get_conf_ref is better?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure...

Since there are DataSchemaRef, SessionManagerRef ..., it seems that if ref is explicitly mentioned, it means Arc<Something>.

But I am Ok with it, if get_conf_ref is preferred, I'd like to rename it.

Copy link
Member

Choose a reason for hiding this comment

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

Bad name ideas from arrow, type ArrayRef = Arc;

@codecov-commenter
Copy link

Codecov Report

Merging #1305 (11328c2) into master (ab9f199) will decrease coverage by 0%.
The diff coverage is 66%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1305   +/-   ##
======================================
- Coverage      72%     72%   -1%     
======================================
  Files         478     478           
  Lines       27843   27863   +20     
======================================
+ Hits        20170   20175    +5     
- Misses       7673    7688   +15     
Impacted Files Coverage Δ
fusequery/query/src/api/rpc_service_test.rs 92% <ø> (-1%) ⬇️
fusequery/query/src/api/rpc_service.rs 55% <66%> (+<1%) ⬆️
common/datavalues/src/series/comparison.rs 70% <0%> (-28%) ⬇️
common/datavalues/src/arrays/ops/cast.rs 73% <0%> (ø)
fusequery/query/src/sql/plan_parser_test.rs 97% <0%> (+<1%) ⬆️
common/datavalues/src/series/wrap.rs 61% <0%> (+<1%) ⬆️
fusequery/query/src/sql/plan_parser.rs 79% <0%> (+<1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab9f199...11328c2. Read the comment docs.

@dantengsky dantengsky marked this pull request as ready for review August 5, 2021 13:30
@databend-bot
Copy link
Member

Hello @dantengsky, 🎉 Thank you for opening the pull request! 🎉
Your pull request state is not in Draft, please add Reviewers or Re-request review again!
FuseQuery: @BohuTANG @sundy-li @zhang2014
FuseStore: @drmingdrmer @dantengsky
Or visit datafuse roadmap for some clues.

@dantengsky dantengsky requested a review from zhang2014 August 5, 2021 13:30
@databend-bot
Copy link
Member

CI Passed
Reviewer Approved
Let's Merge

@databend-bot databend-bot merged commit 463aeba into databendlabs:master Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

maybe change conf to sessions.get_conf() is better?
5 participants