From 43c58df69659b906f8a1fae4e13158cbb897b47c Mon Sep 17 00:00:00 2001 From: yoruet <1559650411@qq.com> Date: Mon, 30 Sep 2024 17:54:20 +0800 Subject: [PATCH] using sub class in regr_slope and regr_intercept --- .../aggregate_function_regr_union.cpp | 15 +++---- .../aggregate_function_regr_union.h | 40 +++++++++---------- 2 files changed, 26 insertions(+), 29 deletions(-) diff --git a/be/src/vec/aggregate_functions/aggregate_function_regr_union.cpp b/be/src/vec/aggregate_functions/aggregate_function_regr_union.cpp index ee255bc6cf3cb6..9c635fe136665d 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_regr_union.cpp +++ b/be/src/vec/aggregate_functions/aggregate_function_regr_union.cpp @@ -27,10 +27,11 @@ namespace doris::vectorized { -template class StatFunctionTemplate> -AggregateFunctionPtr type_dispatch_for_aggregate_function_regr( - const DataTypes& argument_types, const bool& result_is_nullable, bool y_nullable_input, - bool x_nullable_input) { +template class StatFunctionTemplate> +AggregateFunctionPtr type_dispatch_for_aggregate_function_regr(const DataTypes& argument_types, + const bool& result_is_nullable, + bool y_nullable_input, + bool x_nullable_input) { if (y_nullable_input) { if (x_nullable_input) { return creator_without_type::create_ignore_nullable< @@ -54,7 +55,7 @@ AggregateFunctionPtr type_dispatch_for_aggregate_function_regr( } } -template class StatFunctionTemplate> +template