yiguolei commented on code in PR #58363:
URL: https://github.com/apache/doris/pull/58363#discussion_r2567117518
##########
be/src/runtime/query_context.h:
##########
@@ -269,11 +269,12 @@ class QueryContext : public
std::enable_shared_from_this<QueryContext> {
std::make_unique<std::map<std::string,
TAIResource>>(std::move(ai_resources));
}
- const std::map<std::string, TAIResource>& get_ai_resources() const {
+ Status get_ai_resources(const std::map<std::string, TAIResource>**
ai_resources) const {
Review Comment:
这样写很容易崩。
你直接把query context 中的ai resources 这个map 改成shared ptr吧,然后直接返回shared ptr 就好了
--
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]