Update AggregateFunctionNothing.cpp

This commit is contained in:
alexey-milovidov 2022-01-03 03:58:18 +03:00 committed by GitHub
parent 141696e146
commit bd002a6d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,18 +6,16 @@
namespace DB
{
struct Settings;
AggregateFunctionPtr createAggregateFunctionNothing(const std::string & name, const DataTypes & argument_types, const Array & parameters, const Settings *)
{
assertNoParameters(name, parameters);
return std::make_shared<AggregateFunctionNothing>(argument_types, parameters);
}
struct Settings;
void registerAggregateFunctionNothing(AggregateFunctionFactory & factory)
{
AggregateFunctionProperties properties = { .returns_default_when_only_null = false, .is_order_dependent = false };
factory.registerFunction("nothing", { createAggregateFunctionNothing, properties });
factory.registerFunction("nothing", [](const std::string & name, const DataTypes & argument_types, const Array & parameters, const Settings *)
{
assertNoParameters(name, parameters);
return std::make_shared<AggregateFunctionNothing>(argument_types, parameters);
});
}
}