yiguolei commented on code in PR #39883:
URL: https://github.com/apache/doris/pull/39883#discussion_r1743344841


##########
be/src/pipeline/exec/aggregation_sink_operator.cpp:
##########
@@ -394,6 +399,9 @@ Status 
AggSinkLocalState::_merge_with_serialized_key_helper(vectorized::Block* b
 Status AggSinkLocalState::_merge_without_key(vectorized::Block* block) {
     SCOPED_TIMER(_merge_timer);
     DCHECK(_agg_data->without_key != nullptr);
+
+    _memory_usage_last_executing = 0;
+    ScopedMemTracker mem_tracker(_memory_usage_last_executing);

Review Comment:
   不要这么定义,参考SCOPED_TIMER。
   定义一个宏,然后传入一个counter的指针。



-- 
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]

Reply via email to