mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
26 lines
694 B
C++
26 lines
694 B
C++
#pragma once
|
|
|
|
#include <AggregateFunctions/IAggregateFunction.h>
|
|
#include <Core/ColumnNumbers.h>
|
|
#include <Core/Names.h>
|
|
#include <Core/Types.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
namespace JSONBuilder { class JSONMap; }
|
|
|
|
struct AggregateDescription
|
|
{
|
|
AggregateFunctionPtr function;
|
|
Array parameters; /// Parameters of the (parametric) aggregate function.
|
|
Names argument_names;
|
|
String column_name; /// What name to use for a column with aggregate function values
|
|
|
|
void explain(WriteBuffer & out, size_t indent) const; /// Get description for EXPLAIN query.
|
|
void explain(JSONBuilder::JSONMap & map) const;
|
|
};
|
|
|
|
using AggregateDescriptions = std::vector<AggregateDescription>;
|
|
}
|