This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch dev-1.0.1 in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
commit 343f97f028bc33bae07a869864fb034bd5ceb462 Author: shee <13843187+qz...@users.noreply.github.com> AuthorDate: Fri May 6 17:43:14 2022 -0700 [performance][query]improve the performance of DISTINCT aggregation by using flat hash set replace unordered set (#9401) Co-authored-by: shizhiqiang03 <shizhiqian...@meituan.com> --- be/src/exprs/aggregate_functions.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/be/src/exprs/aggregate_functions.cpp b/be/src/exprs/aggregate_functions.cpp index 700851aad0..3e2f4b3fe5 100644 --- a/be/src/exprs/aggregate_functions.cpp +++ b/be/src/exprs/aggregate_functions.cpp @@ -1313,7 +1313,8 @@ private: } }; - std::unordered_set<T, NumericHashHelper> _set; + phmap::flat_hash_set<T, NumericHashHelper> _set; + // Because Anyval does not provide the hash function, in order // to adopt the type different from the template, the pointer is used // HybridSetBase* _set; @@ -1470,7 +1471,8 @@ public: private: const int DECIMAL_BYTE_SIZE = 16; - std::unordered_set<DecimalV2Value> _set; + phmap::flat_hash_set<DecimalV2Value> _set; + FunctionContext::Type _type; }; @@ -1555,7 +1557,8 @@ private: const int DATETIME_PACKED_TIME_BYTE_SIZE = 8; const int DATETIME_TYPE_BYTE_SIZE = 4; - std::unordered_set<DateTimeVal, DateTimeHashHelper> _set; + phmap::flat_hash_set<DateTimeVal, DateTimeHashHelper> _set; + FunctionContext::Type _type; }; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org