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]
<41898282+github-actions[bot]@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 <[email protected]>
---
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: [email protected]
For additional commands, e-mail: [email protected]