HappenLee commented on code in PR #57358:
URL: https://github.com/apache/doris/pull/57358#discussion_r2609740299
##########
be/src/runtime/fragment_mgr.cpp:
##########
@@ -1403,6 +1403,66 @@ Status FragmentMgr::get_query_statistics(const
TUniqueId& query_id, TQueryStatis
print_id(query_id), query_stats);
}
+Status FragmentMgr::transmit_rec_cte_block(
+ const TUniqueId& query_id, const TUniqueId& instance_id, int node_id,
+ const google::protobuf::RepeatedPtrField<doris::PBlock>& pblocks, bool
eos) {
+ if (auto q_ctx = get_query_ctx(query_id)) {
+ SCOPED_ATTACH_TASK(q_ctx.get());
+ return q_ctx->send_block_to_cte_scan(instance_id, node_id, pblocks,
eos);
+ } else {
+ return Status::EndOfFile(
+ "Transmit rec cte block failed: Query context (query-id: {})
not found, maybe "
+ "finished",
+ print_id(query_id));
+ }
+}
+
+Status FragmentMgr::rerun_fragment(const TUniqueId& query_id, int fragment,
+ PRerunFragmentParams_Opcode stage) {
+ if (auto q_ctx = get_query_ctx(query_id)) {
+ SCOPED_ATTACH_TASK(q_ctx.get());
+ auto fragment_ctx = _pipeline_map.find({query_id, fragment});
+ if (!fragment_ctx) {
+ return Status::NotFound("Fragment context (query-id: {},
fragment-id: {}) not found",
+ print_id(query_id), fragment);
+ }
+
+ if (stage == PRerunFragmentParams::wait) {
Review Comment:
if not the five PRerunFragmentParams should return error not ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]