yiguolei commented on code in PR #34145: URL: https://github.com/apache/doris/pull/34145#discussion_r1590571741
########## be/src/pipeline/dependency.h: ########## @@ -312,19 +312,56 @@ class RuntimeFilterDependency final : public Dependency { const IRuntimeFilter* _runtime_filter = nullptr; }; +struct AggSharedState; +struct AggMemData { + AggMemData(AggSharedState* agg_shared_state_) : agg_shared_state(agg_shared_state_) { + agg_data = std::make_unique<vectorized::AggregatedDataVariants>(); + agg_arena_pool = std::make_unique<vectorized::Arena>(); + } + ~AggMemData(); + void setup_mem_tracker(TUniqueId query_id_, + std::shared_ptr<MemTrackerLimiter> query_mem_tracker_) { + query_id = query_id_; + mem_tracker = std::move(query_mem_tracker_); + } + TUniqueId query_id; + std::shared_ptr<MemTrackerLimiter> mem_tracker; + AggSharedState* agg_shared_state; Review Comment: 这里是一个raw 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: 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