mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 12:01:58 +00:00
Fix TotalsHavingTransform.
This commit is contained in:
parent
529c72bc77
commit
6fa7386115
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user