yiguolei commented on code in PR #38168: URL: https://github.com/apache/doris/pull/38168#discussion_r1686134337
########## be/src/runtime/load_stream.cpp: ########## @@ -361,18 +362,24 @@ LoadStream::LoadStream(PUniqueId load_id, LoadStreamMgr* load_stream_mgr, bool e std::shared_ptr<QueryContext> query_context = ExecEnv::GetInstance()->fragment_mgr()->get_or_erase_query_ctx_with_lock(load_tid); if (query_context != nullptr) { - _query_thread_context = {load_tid, query_context->query_mem_tracker}; + _query_thread_context = {load_tid, query_context->query_mem_tracker, + query_context->workload_group()}; } else { - _query_thread_context = {load_tid, MemTrackerLimiter::create_shared( - MemTrackerLimiter::Type::LOAD, - fmt::format("(FromLoadStream)Load#Id={}", - ((UniqueId)load_id).to_string()))}; + _query_thread_context = { + load_tid, + MemTrackerLimiter::create_shared( + MemTrackerLimiter::Type::LOAD, + fmt::format("(FromLoadStream)Load#Id={}", ((UniqueId)load_id).to_string())), + ExecEnv::GetInstance()->workload_group_mgr()->get_task_group_by_id( + 1)}; // tg_id=1 is normal workload group. } #else - _query_thread_context = {load_tid, MemTrackerLimiter::create_shared( - MemTrackerLimiter::Type::LOAD, - fmt::format("(FromLoadStream)Load#Id={}", - ((UniqueId)load_id).to_string()))}; + _query_thread_context = { + load_tid, + MemTrackerLimiter::create_shared( + MemTrackerLimiter::Type::LOAD, + fmt::format("(FromLoadStream)Load#Id={}", ((UniqueId)load_id).to_string())), + ExecEnv::GetInstance()->workload_group_mgr()->get_task_group_by_id(1)}; Review Comment: 这里不要穿了,直接认为是null吧 -- 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