github-actions[bot] commented on code in PR #33383: URL: https://github.com/apache/doris/pull/33383#discussion_r1568131721
########## be/src/service/backend_service.cpp: ########## @@ -1169,4 +1170,29 @@ void BaseBackendService::warm_up_tablets(TWarmUpTabletsResponse& response, response.__set_status(Status::NotSupported("warm_up_tablets is not implemented").to_thrift()); } +void BaseBackendService::get_realtime_exec_status(TGetRealtimeExecStatusResponse& response, + const TGetRealtimeExecStatusRequest& request) { + if (!request.__isset.id) { + LOG_WARNING("Invalidate argument, id is empty"); + response.__set_status(Status::InvalidArgument("id is empty").to_thrift()); + } + + LOG_INFO("Getting realtime exec status of query {}", print_id(request.id)); + std::unique_ptr<TReportExecStatusParams> report_exec_status_params = + std::make_unique<TReportExecStatusParams>(); + Status st = ExecEnv::GetInstance()->fragment_mgr()->get_realtime_exec_status( + request.id, report_exec_status_params.get()); + + if (!st.ok()) { + response.__set_status(st.to_thrift()); + return; + } + + report_exec_status_params->__set_query_id(TUniqueId()); + + response.__set_status(Status::OK().to_thrift()); + response.__set_report_exec_status_params(*report_exec_status_params); + return; Review Comment: warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow] be/src/service/backend_service.cpp:1193: ```diff - response.__set_report_exec_status_params(*report_exec_status_params); - return; - } + } ``` -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org