ClickHouse/dbms/src/AggregateFunctions/AggregateFunctionMerge.cpp

15 lines
383 B
C++
Raw Normal View History

#include <AggregateFunctions/AggregateFunctionMerge.h>
#include <AggregateFunctions/FactoryHelpers.h>
2015-09-24 12:40:36 +00:00
namespace DB
{
AggregateFunctionPtr createAggregateFunctionMerge(const String & name, AggregateFunctionPtr & nested, const DataTypes & argument_types)
2015-09-24 12:40:36 +00:00
{
assertUnary(name, argument_types);
return std::make_shared<AggregateFunctionMerge>(nested, *argument_types[0]);
2015-09-24 12:40:36 +00:00
}
}