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