Fix TotalsHavingTransform.

This commit is contained in:
Nikolai Kochetov 2019-04-08 16:15:53 +03:00
parent 529c72bc77
commit 6fa7386115

View File

@ -254,7 +254,7 @@ void TotalsHavingTransform::prepareTotals()
if (expression)
{
auto block = getOutputPort().getHeader().cloneWithColumns(totals.detachColumns());
auto block = finalized_header.cloneWithColumns(totals.detachColumns());
expression->execute(block);
totals = Chunk(block.getColumns(), 1);
}