#pragma once #include #include #include #include namespace DB { using ColumnsMask = std::vector; 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); }