ClickHouse/src/Interpreters/AggregateDescription.h

28 lines
769 B
C++
Raw Normal View History

#pragma once
2020-12-09 11:14:40 +00:00
#include <AggregateFunctions/IAggregateFunction.h>
#include <Core/ColumnNumbers.h>
#include <Core/Names.h>
2021-01-30 01:16:44 +00:00
#include <Core/Types.h>
namespace DB
{
namespace JSONBuilder { class JSONMap; }
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-07-07 19:51:32 +00:00
void explain(WriteBuffer & out, size_t indent) const; /// Get description for EXPLAIN query.
void explain(JSONBuilder::JSONMap & map) const;
};
using AggregateDescriptions = std::vector<AggregateDescription>;
}