提交 608d8e85 编写于 作者: A Alexey Milovidov

Allow any number of arguments

上级 78402ade
......@@ -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<Float64>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册