You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2026/04/23 09:33:44 UTC

(doris) branch branch-4.1 updated: branch-4.1: [fix](agg) fix redundant copy in collect_set merge #62640 (#62735)

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

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 9783c9d8c26 branch-4.1: [fix](agg) fix redundant copy in collect_set merge #62640 (#62735)
9783c9d8c26 is described below

commit 9783c9d8c26cf20f6b2649670f2d26aae93fdc2f
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Thu Apr 23 17:33:36 2026 +0800

    branch-4.1: [fix](agg) fix redundant copy in collect_set merge #62640 (#62735)
    
    Cherry-picked from #62640
    
    Co-authored-by: Mryange <ya...@selectdb.com>
---
 be/src/exprs/aggregate/aggregate_function_collect.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/be/src/exprs/aggregate/aggregate_function_collect.h b/be/src/exprs/aggregate/aggregate_function_collect.h
index b9a90211afa..c5d4e169f76 100644
--- a/be/src/exprs/aggregate/aggregate_function_collect.h
+++ b/be/src/exprs/aggregate/aggregate_function_collect.h
@@ -78,7 +78,9 @@ struct AggregateFunctionCollectSetData {
                 data_set.insert(rhs_elem);
             }
         } else {
-            data_set.merge(Set(rhs.data_set));
+            for (const auto& elem : rhs.data_set) {
+                data_set.insert(elem);
+            }
         }
     }
 


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