You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/12/14 01:37:11 UTC

[doris] branch master updated: [fix](statistics) fix missing scanBytes and scanRows in query statist… (#14828)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new bbf3a5420d [fix](statistics) fix missing scanBytes and scanRows in query statist… (#14828)
bbf3a5420d is described below

commit bbf3a5420d6ac670601d5fb91f4ee9342e882508
Author: wxy <du...@gmail.com>
AuthorDate: Wed Dec 14 09:37:05 2022 +0800

    [fix](statistics) fix missing scanBytes and scanRows in query statist… (#14828)
    
    A patch for PR-14750. There's one modification missing in ISSUE-14750.
---
 be/src/vec/exec/vexchange_node.cpp | 6 ++++++
 be/src/vec/exec/vexchange_node.h   | 1 +
 2 files changed, 7 insertions(+)

diff --git a/be/src/vec/exec/vexchange_node.cpp b/be/src/vec/exec/vexchange_node.cpp
index 13a75ed990..ba73754404 100644
--- a/be/src/vec/exec/vexchange_node.cpp
+++ b/be/src/vec/exec/vexchange_node.cpp
@@ -116,6 +116,12 @@ void VExchangeNode::release_resource(RuntimeState* state) {
     }
 }
 
+Status VExchangeNode::collect_query_statistics(QueryStatistics* statistics) {
+    RETURN_IF_ERROR(ExecNode::collect_query_statistics(statistics));
+    statistics->merge(_sub_plan_query_statistics_recvr.get());
+    return Status::OK();
+}
+
 Status VExchangeNode::close(RuntimeState* state) {
     if (is_closed()) {
         return Status::OK();
diff --git a/be/src/vec/exec/vexchange_node.h b/be/src/vec/exec/vexchange_node.h
index 37001eadfc..dc633cafd0 100644
--- a/be/src/vec/exec/vexchange_node.h
+++ b/be/src/vec/exec/vexchange_node.h
@@ -42,6 +42,7 @@ public:
     Status get_next(RuntimeState* state, RowBatch* row_batch, bool* eos) override;
     Status get_next(RuntimeState* state, Block* row_batch, bool* eos) override;
     void release_resource(RuntimeState* state) override;
+    Status collect_query_statistics(QueryStatistics* statistics) override;
     Status close(RuntimeState* state) override;
 
     // Status collect_query_statistics(QueryStatistics* statistics) override;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org