diff --git a/be/src/vec/aggregate_functions/aggregate_function_max_by.cpp b/be/src/vec/aggregate_functions/aggregate_function_max_by.cpp deleted file mode 100644 index 50e611b11d8b3e..00000000000000 --- a/be/src/vec/aggregate_functions/aggregate_function_max_by.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -#include - -#include "vec/aggregate_functions/aggregate_function_min_max_by.h" -#include "vec/aggregate_functions/aggregate_function_simple_factory.h" - -namespace doris::vectorized { -#include "common/compile_check_begin.h" - -void register_aggregate_function_max_by(AggregateFunctionSimpleFactory& factory) { - factory.register_function_both( - "max_by", create_aggregate_function_min_max_by); -} - -} // namespace doris::vectorized diff --git a/be/src/vec/aggregate_functions/aggregate_function_min_by.cpp b/be/src/vec/aggregate_functions/aggregate_function_min_by.cpp deleted file mode 100644 index 0af34292bbb2eb..00000000000000 --- a/be/src/vec/aggregate_functions/aggregate_function_min_by.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -#include - -#include "vec/aggregate_functions/aggregate_function_min_max_by.h" -#include "vec/aggregate_functions/aggregate_function_simple_factory.h" - -namespace doris::vectorized { -#include "common/compile_check_begin.h" - -void register_aggregate_function_min_by(AggregateFunctionSimpleFactory& factory) { - factory.register_function_both( - "min_by", create_aggregate_function_min_max_by); -} - -} // namespace doris::vectorized diff --git a/be/src/vec/aggregate_functions/aggregate_function_min_max.cpp b/be/src/vec/aggregate_functions/aggregate_function_min_max.cpp index f894faa5119629..f127cbb4c51f14 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_min_max.cpp +++ b/be/src/vec/aggregate_functions/aggregate_function_min_max.cpp @@ -134,35 +134,20 @@ AggregateFunctionPtr create_aggregate_function_single_value(const String& name, return creator_without_type::create_unary_arguments< AggregateFunctionsSingleValue>>>( argument_types, result_is_nullable, attr); - default: - return nullptr; - } -} - -// any_value -template