mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
Fix TotalsHavingTransform.
This commit is contained in:
parent
529c72bc77
commit
6fa7386115
@ -254,7 +254,7 @@ void TotalsHavingTransform::prepareTotals()
|
|||||||
|
|
||||||
if (expression)
|
if (expression)
|
||||||
{
|
{
|
||||||
auto block = getOutputPort().getHeader().cloneWithColumns(totals.detachColumns());
|
auto block = finalized_header.cloneWithColumns(totals.detachColumns());
|
||||||
expression->execute(block);
|
expression->execute(block);
|
||||||
totals = Chunk(block.getColumns(), 1);
|
totals = Chunk(block.getColumns(), 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user