blob: d4a3921187d37df86779c6b833897c191d8b0738 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <Interpreters/AggregateDescription.h>
#include <Core/Block.h>
#include <Processors/Chunk.h>
#include <vector>
namespace DB
{
using ColumnsMask = std::vector<bool>;
ColumnsMask getAggregatesMask(const Block & header, const AggregateDescriptions & aggregates);
/// Convert ColumnAggregateFunction to real values.
///
/// @param aggregates_mask columns to convert (see getAggregatesMask())
void finalizeChunk(Chunk & chunk, const ColumnsMask & aggregates_mask);
}
|