ClickHouse/dbms/src/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.cpp

27 lines
728 B
C++
Raw Normal View History

#include <AggregateFunctions/AggregateFunctionFactory.h>
#include <AggregateFunctions/AggregateFunctionGroupArrayInsertAt.h>
#include <AggregateFunctions/Helpers.h>
#include <AggregateFunctions/FactoryHelpers.h>
namespace DB
{
namespace
{
AggregateFunctionPtr createAggregateFunctionGroupArrayInsertAt(const std::string & name, const DataTypes & argument_types, const Array & parameters)
{
assertBinary(name, argument_types);
return std::make_shared<AggregateFunctionGroupArrayInsertAtGeneric>(argument_types, parameters);
}
}
void registerAggregateFunctionGroupArrayInsertAt(AggregateFunctionFactory & factory)
{
factory.registerFunction("groupArrayInsertAt", createAggregateFunctionGroupArrayInsertAt);
}
}