ClickHouse/src/Interpreters/AggregateDescription.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
694 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.
Names argument_names;
2017-06-02 21:37:28 +00:00
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>;
}