diff --git a/be/src/vec/aggregate_functions/aggregate_function_stddev.cpp b/be/src/vec/aggregate_functions/aggregate_function_stddev.cpp index c79542e3f8b068..5a76c3b836d3c1 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_stddev.cpp +++ b/be/src/vec/aggregate_functions/aggregate_function_stddev.cpp @@ -51,23 +51,23 @@ AggregateFunctionPtr create_aggregate_function_variance_samp(const std::string& const DataTypes& argument_types, const bool result_is_nullable, const AggregateFunctionAttr& attr) { - return create_function_single_value( - name, argument_types, result_is_nullable); + return create_function_single_value(name, argument_types, result_is_nullable); } AggregateFunctionPtr create_aggregate_function_variance_pop(const std::string& name, const DataTypes& argument_types, const bool result_is_nullable, const AggregateFunctionAttr& attr) { - return create_function_single_value( - name, argument_types, result_is_nullable); + return create_function_single_value(name, argument_types, result_is_nullable); } AggregateFunctionPtr create_aggregate_function_stddev_pop(const std::string& name, const DataTypes& argument_types, const bool result_is_nullable, const AggregateFunctionAttr& attr) { - return create_function_single_value( + return create_function_single_value( name, argument_types, result_is_nullable); } @@ -75,8 +75,8 @@ AggregateFunctionPtr create_aggregate_function_stddev_samp(const std::string& na const DataTypes& argument_types, const bool result_is_nullable, const AggregateFunctionAttr& attr) { - return create_function_single_value( - name, argument_types, result_is_nullable); + return create_function_single_value(name, argument_types, result_is_nullable); } void register_aggregate_function_stddev_variance_pop(AggregateFunctionSimpleFactory& factory) { diff --git a/be/src/vec/aggregate_functions/aggregate_function_stddev.h b/be/src/vec/aggregate_functions/aggregate_function_stddev.h index da8de25c0fe949..9b3cd190991fea 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_stddev.h +++ b/be/src/vec/aggregate_functions/aggregate_function_stddev.h @@ -178,12 +178,12 @@ struct StddevSampName { static const char* name() { return "stddev_samp"; } }; -template +template class AggregateFunctionSampVariance - : public IAggregateFunctionDataHelper> { + : public IAggregateFunctionDataHelper> { public: AggregateFunctionSampVariance(const DataTypes& argument_types_) - : IAggregateFunctionDataHelper>( + : IAggregateFunctionDataHelper>( argument_types_) {} String get_name() const override { return Data::name(); } @@ -216,11 +216,4 @@ class AggregateFunctionSampVariance } }; -template -using AggregateFunctionSamp = AggregateFunctionSampVariance; - -//pop function have use AggregateFunctionNullBase function, so needn't processing null values -template -using AggregateFunctionPop = AggregateFunctionSampVariance; - } // namespace doris::vectorized