ClickHouse/src/Interpreters/AggregationUtils.h

26 lines
701 B
C++
Raw Normal View History

2022-07-29 22:05:14 +00:00
#include <Interpreters/Aggregator.h>
namespace DB
{
struct OutputBlockColumns
{
MutableColumns key_columns;
std::vector<IColumn *> raw_key_columns;
MutableColumns aggregate_columns;
MutableColumns final_aggregate_columns;
Aggregator::AggregateColumnsData aggregate_columns_data;
};
2022-07-29 23:03:01 +00:00
OutputBlockColumns prepareOutputBlockColumns(
2022-07-29 22:05:14 +00:00
const Aggregator::Params & params,
const Aggregator::AggregateFunctionsPlainPtrs & aggregate_functions,
const Block & res_header,
Arenas & aggregates_pools,
bool final,
2022-07-29 23:03:01 +00:00
size_t rows);
2022-07-29 22:05:14 +00:00
2022-07-29 23:03:01 +00:00
Block finalizeBlock(const Aggregator::Params & params, const Block & res_header, OutputBlockColumns && out_cols, bool final, size_t rows);
2022-07-29 22:05:14 +00:00
}