From 608d8e854d78ab2f014d1414aca129dc620a28d3 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 28 Dec 2019 07:30:46 +0300 Subject: [PATCH] Allow any number of arguments --- dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp b/dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp index 1b731cd552..4e9f10a378 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp +++ b/dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp @@ -94,9 +94,6 @@ void registerAggregateFunctionAggThrow(AggregateFunctionFactory & factory) { factory.registerFunction("aggThrow", [](const std::string & name, const DataTypes & argument_types, const Array & parameters) { - if (!argument_types.empty()) - throw Exception("Aggregate function " + name + " requires zero number of arguments", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); - Float64 throw_probability = 1.0; if (parameters.size() == 1) throw_probability = parameters[0].safeGet(); -- GitLab