-
Notifications
You must be signed in to change notification settings - Fork 411
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
refine DAGStorageInterpreter
#4070
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-integration-test |
/run-integration-test |
Add @LittleFall as an optional reviewer. |
void execute(DAGPipeline & pipeline); | ||
void execute(DAGPipeline & pipeline, const String & selection_name, const std::vector<const tipb::Expr *> & conditions); | ||
|
||
void execute(DAGPipeline & pipeline) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not set default value of selection_name/conditions
so we don't have to add this new function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure that execute(pipeline, selection_name)
can't be called.
What is the purpose of change 3? |
these private variables can be changed to local variables of |
/hold |
@SeaRise: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/hold cancel |
What problem does this PR solve?
Issue Number: ref #4118
Waiting for #3876
Problem Summary:
What is changed and how it works?
1、fix clang-tidy warnings of
DAGStorageInterpreter
and replaceString.operator+
byfmt::format
2、remove
QueryBlock
inDAGStorageInterpreter
3、change private variables
LearnerReadSnapshot learner_read_snapshot
,ManageableStoragePtr storage
,Names required_columns
,NamesAndTypes source_columns
andString handle_column_name
to local variables ofexecute
.4、handle
selection_name
andconditions
inexecute
5、add
UniformRandomIntGenerator
to replacerand() % 100
Check List
Tests
Side effects
Documentation
Release note