2014-12-30 12:58:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Core/ColumnNumbers.h>
|
|
|
|
#include <Core/Names.h>
|
|
|
|
#include <AggregateFunctions/IAggregateFunction.h>
|
2014-12-30 12:58:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
struct AggregateDescription
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
AggregateFunctionPtr function;
|
2017-06-02 21:37:28 +00:00
|
|
|
Array parameters; /// Parameters of the (parametric) aggregate function.
|
2017-04-01 07:20:54 +00:00
|
|
|
ColumnNumbers arguments;
|
2017-06-02 21:37:28 +00:00
|
|
|
Names argument_names; /// used if no `arguments` are specified.
|
|
|
|
String column_name; /// What name to use for a column with aggregate function values
|
2014-12-30 12:58:02 +00:00
|
|
|
};
|
|
|
|
|
2016-05-28 10:35:44 +00:00
|
|
|
using AggregateDescriptions = std::vector<AggregateDescription>;
|
2014-12-30 12:58:02 +00:00
|
|
|
|
|
|
|
}
|