Skip to content

Commit

Permalink
add a new api in aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbo-ustc committed Nov 27, 2023
1 parent b8ba0ae commit 607d4d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Interpreters/Aggregator.h
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,14 @@ class Aggregator final
/// Get data structure of the result.
Block getHeader(bool final) const;

Block convertToSingleBlock(AggregatedDataVariants & data_variants, bool final) const
{
if (data_variants.type == AggregatedDataVariants::Type::without_key)
return prepareBlockAndFillWithoutKey(data_variants, final, false);
else
return prepareBlockAndFillSingleLevel<true>(data_variants, final);
}

private:

friend struct AggregatedDataVariants;
Expand Down

0 comments on commit 607d4d1

Please sign in to comment.