imay commented on a change in pull request #531: Add cpu and io indicates to 
audit log
URL: https://github.com/apache/incubator-doris/pull/531#discussion_r248519055
 
 

 ##########
 File path: be/src/exec/exchange_node.cpp
 ##########
 @@ -63,16 +64,16 @@ Status ExchangeNode::init(const TPlanNode& tnode, 
RuntimeState* state) {
 Status ExchangeNode::prepare(RuntimeState* state) {
     RETURN_IF_ERROR(ExecNode::prepare(state));
     _convert_row_batch_timer = ADD_TIMER(runtime_profile(), 
"ConvertRowBatchTime");
-
+    _merge_rows_counter = ADD_COUNTER(runtime_profile(), "MergeRows", 
TUnit::UNIT);
     // TODO: figure out appropriate buffer size
     DCHECK_GT(_num_senders, 0);
+    _sub_plan_query_statistics_recvr.reset(new QueryStatisticsRecvr());
     _stream_recvr = state->exec_env()->stream_mgr()->create_recvr(
             state, _input_row_desc,
             state->fragment_instance_id(), _id,
             _num_senders, config::exchg_node_buffer_size_bytes,
-            state->runtime_profile(), _is_merging);
+            state->runtime_profile(), _is_merging, 
_sub_plan_query_statistics_recvr.get());
 
 Review comment:
   it is better to let `_stream_recvr` own _sub_plan_query_statistics_recvr, 
and this node use _stream_recvr.get_ststs_recvr() to use it.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org
For additional commands, e-mail: dev-h...@doris.apache.org

Reply via email to