Skip to content

Commit 607d4d1

Browse files
committed
add a new api in aggregator
1 parent b8ba0ae commit 607d4d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Interpreters/Aggregator.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,14 @@ class Aggregator final
12101210
/// Get data structure of the result.
12111211
Block getHeader(bool final) const;
12121212

1213+
Block convertToSingleBlock(AggregatedDataVariants & data_variants, bool final) const
1214+
{
1215+
if (data_variants.type == AggregatedDataVariants::Type::without_key)
1216+
return prepareBlockAndFillWithoutKey(data_variants, final, false);
1217+
else
1218+
return prepareBlockAndFillSingleLevel<true>(data_variants, final);
1219+
}
1220+
12131221
private:
12141222

12151223
friend struct AggregatedDataVariants;

0 commit comments

Comments
 (0)