Fix TotalsHavingTransform.

This commit is contained in:
Nikolai Kochetov 2019-04-08 15:24:49 +03:00
parent 6ed86dfeb4
commit a9709f846e

View File

@ -25,10 +25,11 @@ static Chunk finalizeChunk(Chunk chunk)
static Block createOutputHeader(Block block, const ExpressionActionsPtr & expression) static Block createOutputHeader(Block block, const ExpressionActionsPtr & expression)
{ {
finalizeBlock(block);
if (expression) if (expression)
expression->execute(block); expression->execute(block);
finalizeBlock(block);
return block; return block;
} }