Interpreter: Mock exchange executors.#4706
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. DetailsReviewer can indicate their review by submitting an approval review. |
dbms/src/TestUtils/mockExecutor.h
Outdated
|
|
||
| ExecutorPtr root; | ||
| DAGProperties properties; | ||
| std::unordered_map<String, std::vector<Int64>> receiver_source_task_ids_map; |
dbms/src/TestUtils/mockExecutor.cpp
Outdated
| MPPInfo mpp_info(properties.start_ts, -1, -1, {}, mock_context.receiver_source_task_ids_map); | ||
| std::shared_ptr<tipb::DAGRequest> dag_request_ptr = std::make_shared<tipb::DAGRequest>(); | ||
| tipb::DAGRequest & dag_request = *dag_request_ptr; | ||
| root->toTiPBExecutor(dag_request.mutable_root_executor(), properties.collator, mpp_info, mock_context.context); |
There was a problem hiding this comment.
why move this line to here?
|
/merge |
|
@ywqzzy: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions 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 ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: b215d3f |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
/hold |
|
/unhold |
What problem does this PR solve?
Issue Number: ref #4609
Problem Summary:
I didn't support mock exchange executors function, in order to fully supprt mock dagrequest, need to implement all of them.
What is changed and how it works?
Mock exchangeSender&Receivers.
Little refactor of Interpreter test utils in order to mock exchange executors easily.
Check List
Tests
Side effects
Documentation
Release note