ClickHouse/src/Interpreters/AggregateDescription.h

25 lines
651 B
C++
Raw Normal View History

#pragma once
#include <Core/ColumnNumbers.h>
#include <Core/Names.h>
#include <AggregateFunctions/IAggregateFunction.h>
namespace DB
{
struct AggregateDescription
{
AggregateFunctionPtr function;
2017-06-02 21:37:28 +00:00
Array parameters; /// Parameters of the (parametric) aggregate function.
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
2020-06-27 14:02:24 +00:00
void explain(WriteBuffer & out, size_t ident) const; /// Get description for EXPLAIN query.
};
using AggregateDescriptions = std::vector<AggregateDescription>;
}