From 75eded04d732bbe9c87a07b26bcacb69462acaa4 Mon Sep 17 00:00:00 2001 From: zhangstar333 <87313068+zhangstar333@users.noreply.github.com> Date: Wed, 21 Aug 2024 08:46:50 +0800 Subject: [PATCH] [Bug](compatibility) fix window funnel function coredump when upgrade (#39646) ## Proposed changes this PR https://github.com/apache/doris/pull/39270 have change the agg of window funnel and max_be_exec_version is update to 5, in order to compatibility of the agg function when upgrade. --- .../aggregate_functions/aggregate_function_simple_factory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/be/src/vec/aggregate_functions/aggregate_function_simple_factory.h b/be/src/vec/aggregate_functions/aggregate_function_simple_factory.h index b879f829ea..5df89b1a0f 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_simple_factory.h +++ b/be/src/vec/aggregate_functions/aggregate_function_simple_factory.h @@ -59,9 +59,9 @@ private: AggregateFunctions aggregate_functions; AggregateFunctions nullable_aggregate_functions; std::unordered_map function_alias; - /// @TEMPORARY: for be_exec_version=2 - /// in order to solve agg of sum/count is not compatibility during the upgrade process - constexpr static int AGG_FUNCTION_NEW = 2; + /// @TEMPORARY: for be_exec_version=5 + /// in order to solve agg function is not compatibility during the upgrade process + constexpr static int AGG_FUNCTION_NEW = 5; /// @TEMPORARY: for be_exec_version < AGG_FUNCTION_NEW. replace function to old version. std::unordered_map function_to_replace;